outputlog
Records all outputs to a file. If no arguments are passed, the outputlog state is toggled.
Syntax
outputlog
outputlog('on')
outputlog('off')
outputlog(filename)
Inputs
- 'on'
- Starts saving all outputs to the omloutputlog.txt file in the current directory.
- 'off'
- Stops saving the outputs to the log file.
- filename
- Starts saving all outputs to filename.
Examples
Save outputlog to the default
file:
outputlog('on')
eye(10)
outputlog('off')
Save outputlog to a user-defined
file:
outputlog('myresults.txt')
eye(10)
outputlog('off')