Skip to Main Content Skip to Search
Product Documentation

exit - Terminate MATLAB program (same as quit)

Alternatives

As an alternative to the exit function, select File > Exit MATLAB or click the Close box in the MATLAB desktop.

Syntax

exit

Description

exit terminates the current session of MATLAB after running finish.m, if the file finish.m exists. It performs the same as quit and takes the same termination options, such as force. For more information, see quit.

See Also

finish | quit

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS