Installation guide

7 Tuning and Managing M-Files
Message Code (Original Line Numbers)
Explanation and Updated Code (New
Line Numbers)
42: 'data' might be growing inside
a loop. Consider preallocating for
speed.
—————————————————
42 data{3} = zeros(size(data{1}));
This message no longer appears due to
thechangemadetoline34
data{nd} =
getfield(flds,fdata{nd});
. Sometimes
fixing code in one line automatically clears a
messageforanotherline. Ifthereasonfora
message or the action to take for a message is
not obvious at first, it could be because another
line is causing the message. Address the issues
that are e asy to fix first and rerun the report.
Do not make any changes to line 44.
43: 'dim' might be growing inside
a loop. Consider preallocating for
speed.
43 dim(nl) = 2;
See the same message and explanation
reported for line 24. Add this line before the
first line of the loop
dim = len;
48: There may be a parenthesis
imbalance around here.
48: There may be a parenthesis
imbalance around here.
48: There may be a parenthesis
imbalance around here.
48: There may be a parenthesis
imbalance around here.
Thereisanerrorinthisline,whichyou
would see by running
lengthofline.M-Lint
suggests that it might be due to a parenthesis
imbalance. You can check that by moving
the arrow key over each of the delimiters, to
see if MATLAB indicates a mismatch. This
requires that File > Pre fere nc es > Keyboard
> Delimiter Matching has the Match on
arrow key option selected. There are no
mismatched delimiters. The actual problem
is the semicolon in parentheses,
data{3}(:)
is incorrect and should be a colon. In line 51,
change
data{3}(;) to data{3}(:).That
single change addressed the issues in all the
messages for that line.
7-24