MATLAB Answers


How do I re-enable M-Lint for a MATLAB file in MATLAB Editor 7.6 (R2008a)?

When I get my cursor at the last line of my MATLAB file it brings up a data-tip with the following message:
M-Lint caused your previous MATLAB session to terminate unexpectedly.
Please send this message and file name
to MathWorks. See "About M-Lint and Unexpected MATLAB Termination"
in the MATLAB documentation for details.
My code works fine. I would like to know how to get the normal M-Lint back for my MATLAB file.

1 Answer

Answer by MathWorks Support Team on 25 Oct 2010
 Accepted Answer

This enhancement has been incorporated in Release 2010b (R2010b). For previous product releases, read below for any possible workarounds:
To reenable M-Lint for a MATLAB file:
1. In the Editor, reopen the file that you were editing when MATLAB terminated.
2. Remove the lines of code that you believe M-Lint could not handle.
3. Delete the MLintFailureFiles file from your preferences directory. (The preferences directory is the directory that MATLAB returns when you run the function PREFDIR).
4. Save and reopen the MATLAB file.


Sign in to comment.