| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
As an alternative to the exit function, select File > Exit MATLAB or click the Close box in the MATLAB desktop.
exit
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.
![]() | exist | exp | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |