a legend from a sting array
16 ビュー (過去 30 日間)
古いコメントを表示
I have a string array with a unknown number of cells in a row. How can I make a legend of them? Every 2D line one cell.
1 件のコメント
回答 (1 件)
KSSV
2018 年 4 月 17 日
str{1} = 'one' ;
str{2} = 'two' ;
str{3} = 'three' ;
figure
hold on
for i = 1:3
plot(rand(10,1)) ;
end
legend(str)
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!