File Exchange

image thumbnail

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

version 1.0 (1.71 KB) by

Finds code that generates output in the command window due to a missing semicolon (non-suppressed)



View License

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;
profile off;
 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.

Comments and Ratings (3)



Thomas (view profile)

Worked great.


Thomas (view profile)

MATLAB Release
MATLAB 7.6 (R2008a)

Inspired: Manchester

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video