[转]Why do I see a red indication in the M-Lint message bar in my MATLAB file in MATLAB 7.6 (R2008a) although the code executes without any errors?

http://www.mathworks.com/support/solutions/en/data/1-74JVT3/index.html

 

Why do I see a red indication in the M-Lint message bar in my MATLAB file in MATLAB 7.6 (R2008a) although the code executes without any errors?

Date Last Modified: Tuesday, October 12, 2010

Solution ID:
1-74JVT3

Product:
MATLAB

Reported in Release:
R2008a

Platform:
Windows

Operating System:
Windows XP SP2

Subject:

Why do I see a red indication in the M-Lint message bar in my MATLAB file in MATLAB 7.6 (R2008a) although the code executes without any errors?

Problem Description:

In one of the lines in my MATLAB file, I have an “end” statement. When I open this file in the MATLAB Editor, M-lint shows a red indicator right next to this line. When I hover over the indicator, I see 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.

Additionally, when I run the M-lint checker, I see additional messages in the report that were not shown by M-lint in the file itself.
The MATLAB file executes just fine.

Solution:

Whenever MATLAB crashes unexpectedly due to M-lint, it adds the name of the MATLAB file that caused the crash to a file known as “MLintFailureFiles”. This causes the red indicator to appear in the respective MATLAB file when it is opened subsequently.
To work around this issue, perform the following steps:
1. Navigate to the preferences directory. (This is the directory that MATLAB returns when you execute “prefdir” in the MATLAB command window)
2. Open the file called “MLintFailureFiles”, and remove the name of the file that the red indicator is showing up in.
3. Save “MLintFailureFiles”, and close it. The red indicator should no longer appear.

Advertisements
  1. 留下评论

Log in or fill out contact info to leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: