How do I enable a confirmation dialog to appear when I attempt to close MATLAB?
14 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Commented: Adam Danz
on 1 Oct 2020
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
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
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
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!