Octave's diary feature allows you to keep a log of all or part of an interactive session by recording the input you type and the output that Octave produces in a separate file.
diary options | Command |
Create a list of all commands and the output they produce mixed
together just as you see them on your terminal. Valid options are:
Without any arguments |
Sometimes it is useful to see the commands in a function or script as they are being evaluated. This can be especially helpful for debugging some kinds of problems.
echo options | Command |
Control whether commands are displayed as they are executed. Valid
options are:
If invoked without any arguments |
echo_executing_commands | Built-in Variable |
This variable may also be used to control the echo state. It may be
the sum of the following values:
More than one state can be active at once. For example a value of 3 is equivalent to the command echo on all. The value of |