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

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

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 7 de Nov. de 2019

0 votos

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

Más respuestas (0)

Categorías

Más información sobre 语言基础知识 en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!