|||
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文件,将原代码拷入新文件中调试运行。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-6 21:22
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社