MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在Matlab中将文本打印到文件中 (https://www.labfans.com/bbs/showthread.php?t=26630)

poster 2019-12-14 20:13

在Matlab中将文本打印到文件中
 
我想记录程序的运行情况,特别是每个部分的运行时间。此时,我使用disp打印到屏幕上。有没有办法将我打印的某些内容也打印到文本文件中?



[B]回答:[/B]

您可以使用[URL="http://www.mathworks.com/help/techdoc/ref/diary.html"]DIARY[/URL]命令,该命令从命令窗口捕获所有内容。



[url=https://stackoverflow.com/questions/5347141]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 09:07

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.