Could anyone help me how to type different symbols for the legend in the graph
2 ビュー (過去 30 日間)
古いコメントを表示
Could anyone help me how to type different symbols for the legend in the graph
3 件のコメント
Jan
2018 年 7 月 11 日
What exactly is the problem? The legend or the plotting? Please show the current code.
回答 (1 件)
Akbar
2018 年 7 月 11 日
LS = {'-v','-^',':','-.','-o','-','-+','-*','x','-square','--+'};
plot(1:10,ones(1,10),'-<','color','black')
hold on
for i = 2:11
plot(1:10,i*ones(1,10),LS{i},'color','black')
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!