Desktop Tools and Development Environment Previous page   Next Page

Keeping a Session Log

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')

To view the file, run

edit('sept23.out')

Other Session Logs

There are two other means of viewing session information:


Previous page  Printing Command Window Contents Searching in the Command Window Next page

© 1994-2005 The MathWorks, Inc.