We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a88f4 commit 74ce1e5Copy full SHA for 74ce1e5
mlapptools.m
@@ -163,7 +163,7 @@ function validatealignmentstr(alignment)
163
164
if ~any(ismember(weight, validstrs))
165
msgID = 'mlapptools:fontWeight:InvalidFontWeightString';
166
- error(msgID, 'Invalid font weight specified: ''%s''', alignment);
+ error(msgID, 'Invalid font weight specified: ''%s''', weight);
167
end
168
elseif isnumeric(weight)
169
weight = round(weight, -2);
@@ -175,7 +175,8 @@ function validatealignmentstr(alignment)
175
176
weight = num2str(weight);
177
else
178
- % Throw error
+ msgID = 'mlapptools:fontWeight:InvalidFontWeight';
179
180
181
182
0 commit comments