How can I get an M-lint report without opening the files in the Editor?
1 次查看(过去 30 天)
显示 更早的评论
I would like to see the errors in my files reported by M-lint but I do not want to open the files in the Editor.
采纳的回答
MathWorks Support Team
2009-6-27
There are several ways to get the M-lint report on the files in your directory:
1. Run the M-Lint Code Check Directory Report. For step-by-step instructions on how to run the M-lint Code Check Directory Report, please refer to the documentation by executing the following in the MATLAB command prompt:
web([docroot '/techdoc/matlab_env/f9-11863.html'])
2. Use MLINT function. For example, using MLINT with the following syntax:
inform=mlint('filename','-struct')
returns the M-Lint information in a structure array whose length is the number of suspicious constructs found. If you specify multiple file names as input, or if you specify a cell array as input, 'inform' contains a cell array of structures.
For more information on MLINT and the possible syntaxes you can use with it, please refer to the documentation by executing the following in the MATLAB command prompt:
doc mlint
3 Use MLINTPRT function which will run MLINT for file or directory, reporting results in browser. For more information on MLINTPRT, please refer to the documentation by executing the following in the MATLAB command prompt:
doc mlintrpt
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!