GithubHelp home page GithubHelp logo

reportgen_matlab's Issues

感谢分享!

com口根本没有办法跨平台实现,本来都我差不多要放弃了,转向生成html或者markdown之类的标记语言,没有想到还有mlreportgen这个东东。

感谢提供的素材!

table的模板是在哪里啊,

东西很好。不过,有关表格的模板,例如文章说的mytable1,mytable2两个模板是在哪里呢?如何确保生成并使用呢,请指教!谢谢!
方便的话,请留下qq或者微信吧

亲能请教个问题吗?

我用您写的模板想使用子函数调用的方式使用,不知道为什么用不起,能指点一下吗?主要您写的这个版本我自己觉得比较看得懂,比较清晰。

在word里面写入文字,操作在一个.m文件中可正常执行

import mlreportgen.dom.*;
d=Document('demo2','docx');
open(d);

%% 标题
%-----------------------------------------------------------------------------------------
p=Heading(1,'Matlab 自动化报告模板');% 一级标题
p.Style={Color('red'),HAlign('center')};
%-----------------------------------------------------------------------------------------
append(d,p);

close(d);
rptview(d.OutputPath);

但是如果把上面标题部分内容放到子函数testtest里面就无法实现,如下面的写法

=================================================

import mlreportgen.dom.*;
d=Document('demo2','docx');
open(d);

% 调用函数
p = testtest(d);

append(d,p);

close(d);
rptview(d.OutputPath);

function out = testtest(d)

p=Heading(1,'Matlab 自动化报告模板');% 一级标题
p.Style={Color('red'),HAlign('center')};

out = p;

请问一下我怎么才能在子函数里面实现呢,因为如果我想大量的写入文件,想通过调用子函数的方式来实现。不知道是否有空指点一下,谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.