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

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

 Risposta accettata

MathWorks Support Team
MathWorks Support Team il 7 Nov 2019

0 voti

基本思路是:
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);

Più risposte (0)

Categorie

Scopri di più su 语言基础知识 in Centro assistenza e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!