gasongjian / reportgen_matlab Goto Github PK
View Code? Open in Web Editor NEW利用Matlab生成报告(Word、PPT)
利用Matlab生成报告(Word、PPT)
com口根本没有办法跨平台实现,本来都我差不多要放弃了,转向生成html或者markdown之类的标记语言,没有想到还有mlreportgen这个东东。
感谢提供的素材!
东西很好。不过,有关表格的模板,例如文章说的mytable1,mytable2两个模板是在哪里呢?如何确保生成并使用呢,请指教!谢谢!
方便的话,请留下qq或者微信吧
我用您写的模板想使用子函数调用的方式使用,不知道为什么用不起,能指点一下吗?主要您写的这个版本我自己觉得比较看得懂,比较清晰。
import mlreportgen.dom.*;
d=Document('demo2','docx');
open(d);
%% 标题
%-----------------------------------------------------------------------------------------
p=Heading(1,'Matlab 自动化报告模板');% 一级标题
p.Style={Color('red'),HAlign('center')};
%-----------------------------------------------------------------------------------------
append(d,p);
但是如果把上面标题部分内容放到子函数testtest里面就无法实现,如下面的写法
=================================================
import mlreportgen.dom.*;
d=Document('demo2','docx');
open(d);
% 调用函数
p = testtest(d);
append(d,p);
function out = testtest(d)
p=Heading(1,'Matlab 自动化报告模板');% 一级标题
p.Style={Color('red'),HAlign('center')};
请问一下我怎么才能在子函数里面实现呢,因为如果我想大量的写入文件,想通过调用子函数的方式来实现。不知道是否有空指点一下,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.