Deciphering an Error message
3 ビュー (過去 30 日間)
古いコメントを表示
What does the following error message mean?
??? Index exceeds matrix dimensions.
Error in ==> clabel>inline_labels at 172
if strcmp(get(h(1), 'Type'), 'patch') && ~strcmp(get(h(1), 'FaceColor'),
'none')
Error in ==> clabel at 111
h = inline_labels(cax, cs, varargin{:});
Thank you.
0 件のコメント
採用された回答
Walter Roberson
2012 年 4 月 2 日
Brooke, for some values of n, there would be no data below the choosen n, and so there would be no contour line drawn. The handle returned, h, would be empty. Feeding an empty handle to clabel causes the message you see.
0 件のコメント
その他の回答 (1 件)
Sean de Wolski
2012 年 4 月 2 日
x = rand(2,2)
x is now a 2x2 matrix.
If I try to get x(3,3):
x(3,3)
I'll get that error because x(3,3) doesn't exist since it's 2x2
3 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!