科研菜鸟分享 http://blog.sciencenet.cn/u/sanshiphy 聚沙成塔,集腋成裘 leilphy@gmail.com

博文

Matlab:M-lint caused your previous MATLAB session。。。

已有 3114 次阅读 2014-9-17 17:44 |个人分类:技术备忘录|系统分类:科研笔记| Matlab误报

Matlab m文件编译报错:

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.


解决方案(该方案转载自http://www.mathworks.com/matlabcentral/answers/95711-why-do-i-see-a-red-indication-in-the-m-lint-message-bar-in-my-matlab-file-in-matlab-7-6-r2008a-alt):

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.


不想这么麻烦,也可以新建一个m文件,将原代码拷入新文件中调试运行。





https://blog.sciencenet.cn/blog-200199-828533.html

上一篇:科研文摘及点评(2014-9-9):Dragon Kings
下一篇:Matlab: 如何对矩阵分块并对各块进行运算
收藏 IP: 140.105.47.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-6 21:22

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部