28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mlint<br />

2-1474<br />

are no output arguments, the default behavior is to display the information to<br />

the command line.<br />

[info,filepaths]=mlint(filename) will additionally return filepaths, the<br />

absolute paths to the filenames in the same order as they were input.<br />

info=mlint(filename,'-id') requests the message ID from M-Lint as well.<br />

When returned to a structure, the output will have the following additional<br />

field:<br />

info=mlint(filename,'-fullpath') assumes that the input filenames are<br />

absolute paths, rather than requiring M-Lint to locate them.<br />

To force M-Lint to ignore a line of code, add %#ok at the end of the line. This tag<br />

can be followed by comments. For example:<br />

unsuppressed1 = 10 % This line will get caught<br />

suppressed2 = 20 %#ok These next two lines will not get caught<br />

suppressed3 = 30 %#ok<br />

Examples lengthofline.m is an example M-file with suspicious M-Lint constructs. It is<br />

found in $matlabroot/matlab/help/techdoc/matlab_env/examples. To<br />

display to the command line, run<br />

See Also mlintrpt<br />

Field Description<br />

id ID associated with the message<br />

mlint lengthofline<br />

To store to a struct with ID, run<br />

info=mlint('lengthofline','-id')

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!