How to avoid legend error?
古いコメントを表示
I keep receiving this error:
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
I solve it by making the length of the string the same. Like this example:
legend(['x9';'x10']) %this will produce the error
legend(['x9_';'x10']) %solution
But this is not what I want especially when the string gets lengthy. So please, is there another solution?
回答 (1 件)
legend(['x9' ,'x10'])
2 件のコメント
Ezz El-din Abdullah
2017 年 3 月 15 日
KSSV
2017 年 3 月 16 日
Yes you are right....This will work.
legend({'x9' ; 'x10'})
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!