
Quitting MATLAB
Quitting MATLAB
In this section...
“Ways to Quit MATLAB” on page 1-23
“Confirm Quitting MATLAB” on page 1-23
“Running a Script W hen Quitting MATLAB” on page 1-24
“Abnormal Termination” on page 1-24
Ways to Quit MA TLAB
To quit MATLAB at any time, do one of the following:
• Click the Close box
in the MATLAB desktop.
• Select Exit MATLAB from the desktop File menu.
• Type
quit at the C ommand Window prompt.
MATLAB closes afte r
• P rompting you to confirm quitting, if that preference is specified (see
“Confirm Quitting MATLAB” on page 1-23)
• P r ompting you to save any unsaved files
• Running the
finish.m script, if it e xists in the current directory or on the
MATLAB path (see “Running a Script When Quitting MATLAB” on page
1-24)
Confirm Quitting MATLAB
To set a preference that displays a confirmation dialog box when you quit
MATLAB, select File > Preferences > General > Confirmation Dialogs,
select the Confirm before quitting check box, and click OK.MATLABthen
displays the following dialog bo x when you quit.
1-23
Commentaires sur ces manuels