Function Reference
— Built-in Function: exit (status)
— Built-in Function: quit (status)

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