Documentation Center

  • Trials
  • Product Updates

When MATLAB Terminates Unexpectedly

In the event MATLAB® experiences a segmentation violation (segv) or other serious problem, the MATLAB System Error dialog box opens to notify you about the problem. When this occurs, the internal state of MATLAB is unreliable and not suitable for further use. Exit as soon as possible and then restart. However, you might want to first try to save your work in progress.

To exit and restart without trying to save your work, follow these steps:

  1. If you want to view the stack trace for the problem, click Details.

  2. Click Close to terminate MATLAB.

  3. Restart MATLAB. If the Error Log Reporter dialog box opens, select the option to send a report to MathWorks®.

To try to save your work in progress before exiting and restarting MATLAB, follow these steps:

  1. If you want to view the stack trace for the problem, click Details.

  2. Click Attempt to Continue. MATLAB tries to return to the Command Window or tool you were using.

    The Command Window displays the message Please exit and restart MATLAB to the left of the prompt, which reminds you to discontinue use.

  3. From the Command Window or tool, try to save the workspace and unsaved files.

      Caution   Because the internal state of MATLAB might be corrupted, do not save existing files to the same file name. Instead, specify a new file name. The information in the new file might be corrupted or incomplete.

  4. Exit MATLAB immediately after saving because any further usage would be unreliable.

  5. Restart MATLAB. If the Error Log Reporter dialog box opens, select the option to send a report to MathWorks.

Was this topic helpful?