MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

  • It is cleared in the Code Analyzer preferences pane.

  • It is disabled by default.


To determine the reasons why some messages are suppressed:


(^1) Search the file for the %#ok directive and create a list of all the message IDs
associated with that directive.
2
On the Home tab, in the Environment section, click Preferences.
The Preferences dialog box opens.
(^3) Select MATLAB > Code Analyzer.
(^4) In the search field, type msgid: followed by one of the message IDs, if any, you found
in step 1.
The message list now contains only the message that corresponds to that ID. If the
message is a hyperlink, click it to see an explanation and suggested action for the
message. This can provide insight into why the message is suppressed or disabled.
The following image shows how the Preferences dialog box appears when you enter
msgid:CPROP in the search field.
5
Click the button to clear the search field, and then repeat step 4 for each message
ID you found in step 1.
(^6) Display messages that are disabled by default and disabled in the Preferences pane
by clicking the down arrow to the right of the search field. Then, click Show
Disabled Messages.
Check Code for Errors and Warnings

Free download pdf