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

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

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 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);

Plus de réponses (0)

Catégories

En savoir plus sur 语言基础知识 dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!