Navigation

Operators and Keywords

Function List:

C++ API

: exit
: exit (status)
: quit
: quit (status)

Exit the current Octave session.

If the optional integer value status is supplied, pass that value to the operating system as Octave’s exit status. The default value is zero.

When exiting, Octave will attempt to run the m-file finish.m if it exists. User commands to save the workspace or clean up temporary files may be placed in that file. Alternatively, another m-file may be scheduled to run using atexit.

See also: atexit.

Package: octave