diary

Purpose

Save session in a disk file.

Synopsis

diary
diary filename
diary off
diary on

Description

diary, by itself, toggles diary 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.

The output of diary is an ASCII file, suitable for printing or for inclusion in reports and other documents.

Limitations

You cannot put a diary into the files named off and on.

See Also

disp, fprintf, save

(c) Copyright 1994 by The MathWorks, Inc.