find lines of code which are not suppressed (no semicolon at end)

版本 1.0.0.0 (1.7 KB) 作者: Ueli Rutishauser
Finds code that generates output in the command window due to a missing semicolon (non-suppressed)
1.6K 次下载
更新时间 2009/4/13

查看许可证

Ever had the annoying problem that a large program consisting of many files generated unwanted text output in the command window due to non-suppressed output ?

This function finds, based on profile data, lines of code which produce non-suppressed output (not terminated by semicolon). Only functions which are actually called are considered.

to use:
profile on;
YourFunct(a,b,c);
profile off;
p=profile('info');
findNonSuppressedOutput( p, '/code/projectA/' )

this will run mlint on all called functions in path code/projectA/ (and subdirs) and report lines that contain the requested mlint IDs (here: non-terminated lines, IDs NOPRT and NOPTS) functions called that reside outside the provided path are ignored. Note that only lines which mlint correctly identifies are found.

引用格式

Ueli Rutishauser (2024). find lines of code which are not suppressed (no semicolon at end) (https://www.mathworks.com/matlabcentral/fileexchange/23665-find-lines-of-code-which-are-not-suppressed-no-semicolon-at-end), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Debugging and Analysis 的更多信息
致谢

启发作品: Manchester

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0