| MATLAB Function Reference | Search  Help Desk |
| diary |
Syntax
diary diary filename diary off diary on
Description
Thediary command creates a log of keyboard input and system responses. The output of diary is an ASCII file, suitable for printing or for inclusion in reports and other documents.
diary
toggles diary mode on and off.
diary filename
writes a copy of all subsequent keyboard input and most of the resulting output (but not graphs) to the named file. If the file already exists, output is appended to the end of the file.
diary off
suspends the diary.
diary on
resumes diary mode using the current filename, or the default filename diary if none has yet been specified.
Remarks
The function form of the syntax,diary('filename'), is also permitted.
Limitations
You cannot put a diary into the files namedoff and on.