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

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

 採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 11 月 7 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange语言基础知识 についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!