b Click the fix.
MATLAB automatically corrects the code.
In this example, MATLAB replaces prod(size(hline)) with
numel(hline).
(^9) Go to a different message by doing one of the following:
- To go to the next message, click the message indicator or the next underlined
code fragment. - To go to a line that a marker represents, click a red or orange line in the indicator
bar.
To see the first error in lengthofline, click the first red marker in the message
bar. The cursor moves to the first suspect code fragment in line 47. The Details
and Fix buttons are dimmed (or not visible if in MATLAB Online), indicating that
there is no more information about this message and there is no automatic fix.
Multiple messages can represent a single problem or multiple problems.
Addressing one might address all of them, or after addressing one, the other
messages might change or what you need to do might become clearer.
(^10) Modify the code to address the problem noted in the message—the message
indicators update automatically.
On line 47, the message suggests a delimiter imbalance. To investigate this message,
in the Editor, move the arrow key over each of the delimiters to see if MATLAB
indicates a mismatch. For instructions on how to enable delimiter matching on arrow,
see “Set Keyboard Preferences”.
Check Code for Errors and Warnings