diary not saving to file all output to command window
Show older comments
Hi,
My script often calls functions from various 3rd party Matlab toolboxes. Although I set diary() at the beginning of my script, a lot of the output to the command history from these functions aren't saved into my diary output. Is there an alternative to diary() that will always direct all types of output to a file? Are there different types of output that a redirected differently in Matlab (like the Unix I/O redirection difference between stderr and stdout although what's not writing into my Matlab diary is not always errors but also normal disp() messages). Or is there a command that I can execute in the command window before/after running my script that will dump everything in the command window into a file?
Thanks in advance! g
Answers (1)
Please explain which parts of the output are missing: Error message? Warnings? Hyperreferences? Text written by Mex-functions?
2 Comments
Gina Joue
on 6 May 2016
Ali Komai
on 27 Jul 2018
Hi Jan,
Sorry for resurrecting this here but I have the same problem. Outputs from the mainscript with fprintf and disp are not saved in the diary BUT if this outputs come from a function they are saved. Is there an option to make the diary also save outputs from the mainscript?
Categories
Find more on Scope Variables and Generate Names 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!