User`s guide
R2008a
18-14
• Function code
• If/else blocks
• Switch/case blocks
• Try/catch blocks
• While blocks
Prior to MATLAB Version 7.6 (R2008a), code folding was supported for function code and
function help only.
See Code Folding — Expand and Collapse Code Constructs for details.
mlint Function Uses Preference Settings when Java Software is Available
When Sun Microsystems Java software is available, the mlint function honors the
M-lint preferences that you specify using the M-Lint Preferences dialog box (File >
Preferences > M-Lint).
In addition, the '–config=settings.txt' option to the mlint function enables you
to override the current default M-Lint preferences settings with a settings file that you
previously created and saved using the M-Lint Preferences dialog box. If you use the '–
config=settings.txt' option, you must specify the full path to the file. If you prefer
that m-lint ignore all M-Lint preferences and use the factory default settings instead,
specify the '–config=factory' flag. See m-lint for details.
Compatibility Considerations
Previously, the mlint function always used the factory default settings, regardless of the
M-Lint preferences that you set. To restore that behavior, use the '–config=factory'
flag on the mlint function.
New M-Lint Warning Related to the MException Class
MATLAB Version 7.6 (R2008a) adds a new M-Lint warning related to the MException
class. This warning, along with two M-Lint warnings added in MATLAB Version 7.5
(R2007b), intentionally make it difficult for you to completely ignore an error without
receiving an M-Lint warning. It is a best practice to check error information even when
an error is expected or frequent, so that you can rule out unexpected situations.
The three messages are as follows—the first is the one added in MATLAB Version 7.6
(R2008a):