Desktop Tools and Development Environment |
The diary Function
The diary
function creates a copy of your MATLAB session in a disk file, including keyboard input and system responses, but excluding graphics. You can view and edit the resulting text file using any text editor, such as the Editor/Debugger. To create a file on your disk called sept23.out
that contains all the functions you enter, as well as MATLAB output, enter
diary('sept23.out')
To stop recording the session, use
diary
('off')
edit('sept23.out')
Other Session Logs
There are two other means of viewing session information:
logfile
startup option--see Startup Options.
Printing Command Window Contents | Searching in the Command Window |
© 1994-2005 The MathWorks, Inc.