MATLAB 中如何将命令行窗口的输出发布到报告中?

MATLAB 中如何将命令行窗口的输出发布到报告中?

 Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Nov 2019

0 votes

基本思路是:
1. 用 evalc 函数,抓取命令行窗口的结果
2. 用append 函数,将抓取到的结果添加到报告中
例如:
>>a=1
>>T=evalc('a');
>>import mlreportgen.dom.*;
>>d = Document('test','html');
>>p = Paragraph(T);
>>append(d,p);
>>close(d);
>>rptview(d.OutputPath);

More Answers (0)

Categories

Find more on 语言基础知识 in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!