How do I enable a confirmation dialog to appear when I attempt to close MATLAB?

14 views (last 30 days)
I would like a confirmation to appear prior to closing MATLAB to protect against accidentally closing MATLAB and losing valuable work.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been applied in MATLAB 7.0.4 (R14SP2).
For previous releases, to enable the confirmation dialog to appear upon closing MATLAB perform the following steps:
1. Select "File -> Preferences..."
2. Select "Confirmation Dialogs" in the tree browser on the left
3. Check the checkbox next to "Confirm before exiting MATLAB"
4. Click "Apply"
5. Click "OK"
  1 Comment
Adam Danz
Adam Danz on 1 Oct 2020
Update (r2020b)
Open preference dialog
Home tab > "Preferences" (in Environment section)
Navigate to
MATLAB > General > Confirmation Dialogs
check
Confirm before exiting MATLAB
Press OK

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!