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
outputlog('on')
eye(10)
outputlog('off')outputlog('myresults.txt')
eye(10)
outputlog('off')