23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

diary<br />

2diary<br />

Purpose Save session to a file<br />

Syntax diary<br />

diary('filename')<br />

diary off<br />

diary on<br />

diary filename<br />

Description The diary function creates a log of keyboard input and the resulting output<br />

(except it does not include graphics). The output of diary is an ASCII file,<br />

suitable for printing or for inclusion in reports and other documents. If you do<br />

not specify filename, <strong>MATLAB</strong> creates a file named diary in the current<br />

directory.<br />

2-442<br />

diary toggles diary mode on and off. To see the status of diary, type<br />

get(0,'Diary'). <strong>MATLAB</strong> returns either on or off indicating the diary<br />

status.<br />

diary('filename') writes a copy of all subsequent keyboard input and the<br />

resulting output (except it does not include graphics) to the named file. If the<br />

file already exists, output is appended to the end of the file. You cannot use a<br />

filename called off or on. To see the name of the diary file, use<br />

get(0,'DiaryFile'). Type get(0,'DiaryName'), and <strong>MATLAB</strong> returns<br />

filename.<br />

diary off suspends the diary.<br />

diary on resumes diary mode using the current filename, or the default<br />

filename diary if none has yet been specified.<br />

diary filename is the unquoted form of the syntax.<br />

See Also Command History window

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!