Follow these steps:
1
On the Home tab, in the Environment section, click Preferences.
The Preferences dialog box opens.
(^2) Select MATLAB > Code Analyzer.
(^3) Enable or disable specific messages, or categories of messages.
(^4) Click the Actions button , select Save as, and then save the settings to a txt file.
(^5) Click OK.
You can reuse these settings for any MATLAB file, or provide the settings file to another
user.
To use the saved settings:
1
On the Home tab, in the Environment section, click Preferences.
The Preferences dialog box opens.
(^2) Select MATLAB > Code Analyzer.
(^3) Use the Active Settings drop-down list to select Browse....
The Open dialog box appears.
(^4) Choose from any of your settings files.
The settings you choose are in effect for all MATLAB files until you select another set
of Code Analyzer settings.
Understand Code Containing Suppressed Messages
If you receive code that contains suppressed messages, you might want to review those
messages without the need to unsuppress them first. A message might be in a suppressed
state for any of the following reasons:
- One or more %#ok
directives are on a line of code that elicits a
message specified by. - One or more %#ok<*message-ID> directives are in a file that elicits a message
specified by.
24 Coding and Productivity Tips