diary not saving all command window output

3 次查看(过去 30 天)
g
g 2014-8-28
回答: g 2014-8-29
Hi, Are there certain output messages to the command window which "diary" does not save? Are there other redirect to file commands to cover these cases? Thx in advance for any pointers

回答(2 个)

Image Analyst
Image Analyst 2014-8-29
The exceptions are listed in the "Tips" section of the help, like the help says.

g
g 2014-8-29
Oh, I was not clear -- 'diary' is not saving text output from an external function call (not graphics or differences in formatting). There is a cascade of calls to 3rd party functions in my process so was hoping that there was a Matlab function that will force dump what I see in the command window into a file because 'diary' does not seem to do it, not even output from 'disp' or even fprintf with fileID specified, which usually works for me, so I guess somewhere in the chain of calls, diary is being toggled off. Is there maybe a command that will output what's already printed to the command window after the process is finished? ...although that doesn't help when Matlab crashes.... Thanks

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by