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.
Type: string
'off'
Stops saving the outputs to the log file.
Type: string
filename
Starts saving all outputs to filename.
Type: string

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')