MATLAB Function Reference
  Go to function:
    Search    Help Desk 
diary

Save session in a disk file

Syntax

Description

The diary 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, by itself, 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 named off and on.



[ Previous | Help Desk | Next ]