how to capture texts in the command window?
22 ビュー (過去 30 日間)
古いコメントを表示
I have a gui application. some error messages appear in the command window sometime when i am not around. i would like to be able to capture the messages to a text file, something like an error log. can anyone please let me know how to do that? thank
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 6 月 28 日
編集済み: Walter Roberson
2012 年 6 月 28 日
You might be able to use diary()
Also in some cases evalc() is suitable.
0 件のコメント
Jan
2012 年 6 月 28 日
I enclose the concern parts of the program in TRY-CATCH blocks and use a dedicated function, which writes to the command window and a log file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!