Record a list of all commands and the output they produce, mixed together just as they appear on the terminal.
Valid options are:
Start recording a session in a file called diary in the current working directory.
Stop recording the session in the diary file.
Record the session in the file named filename.
With no arguments, diary
toggles the current diary state.
See also: history, evalc.
Package: octave