diary
diary filename
diary off
diary on
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.
off
and on
.
disp
,fprintf
,save
(c) Copyright 1994 by The MathWorks, Inc.