MATLAB 帮助中心
(已删除)对文件或文件夹运行 checkcode
checkcode
mlintrpt 已删除。请改用代码分析器。有关更新代码的信息,请参阅版本历史记录。
mlintrpt
mlintrpt(f)
mlintrpt(f, inputType)
mlintrpt(___,settingsfile)
mlintrpt 在当前文件夹中扫描所有 MATLAB® 代码文件,得出代码分析器消息并在 HTML 查看器中报告结果。
mlintrpt(f) 扫描指定的文件 f。
f
示例
mlintrpt(f, inputType) 扫描指定的文件或文件夹 f,由 inputType 指定。使用 'file' 指定文件,使用 'dir' 指定文件夹。
inputType
'file'
'dir'
mlintrpt(___,settingsfile) 用指定的设置文件覆盖默认的当前设置文件。您可以指定将 settingsfile 与上述语法中的任何输入参量结合使用。
settingsfile
全部折叠
对示例文件 lengthofline.m 运行 mlintrpt。MATLAB 显示 lengthofline 的潜在问题和改进的报告。
lengthofline.m
lengthofline
mlintrpt('lengthofline')
文件或文件夹名称,指定为字符向量。文件名称可以包括部分路径,但必须位于搜索路径上的文件夹中或当前文件夹中。
输入类型,如果输入是文件,则指定为 'file';如果输入是文件夹,则指定为 'dir'。
设置文件名,指定为字符向量。如果该文件不在当前文件夹中,请提供该文件的完整路径。
有关创建设置文件的信息,请参阅保存并重新使用代码分析器消息设置。如果您指定的文件无效,报告中的第一条消息是 0: Unable to open or read the configuration file 'mymlint.txt'--using default settings。
0: Unable to open or read the configuration file 'mymlint.txt'--using default settings
mlintrpt 已删除。请改用 codeAnalyzer 来打开代码分析器,并为选定文件或文件夹及其子文件夹生成问题报告。
codeAnalyzer
codeIssues
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处