
1 Startup and Shutdown
For more informatio n , see “Confirm ation Dialogs Pre ferences” on page 2-81.
You can also display your own quitting confirmation dialog box using a
finish.m script, as described in the following section.
Running a Script When Quitting MATLAB
When MATLAB quits, it runs the script finish.m,iffinish.m exists in the
current directory or anywhere on the MATLAB search path. You create the
file
finish.m. It contains statements to run when MATLAB terminates, such
as saving the workspace or displaying a confirmation dialog box. There are
twosamplefilesin
matlabroot/toolbox/local that you can use as the basis
foryourown
finish.m file:
•
finishsav.m —Includesasave function so the workspace is saved to
a MAT-file when MATLAB quits.
•
finishdlg.m — Displays a confirma tion dialog b o x that allows you to
cancel quitting.
For more information, see the
finish reference page.
Abnormal Termination
In the event MATLAB experiences a segm entation violation (segv) or another
serious problem, save your files and workspace if possible, exit MATLAB,
and restart.
Upon startup, if MATLAB detects an error log generated by a serious problem
during the previous session, an Error Log Reporter prom pts you to e-mail
thelogtoTheMathWorksforanalysis. If the problem occurs repeatedly,
1-24
Comentários a estes Manuais