how to capture texts in the command window?
Show older comments
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
Answers (2)
Walter Roberson
on 28 Jun 2012
Edited: Walter Roberson
on 28 Jun 2012
0 votes
You might be able to use diary()
Also in some cases evalc() is suitable.
Jan
on 28 Jun 2012
0 votes
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.
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!