how to capture texts in the command window?
조회 수: 14 (최근 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!