Could anyone help me how to type different symbols for the legend in the graph

2 ビュー (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2018 年 7 月 11 日
コメント済み: Jan 2018 年 7 月 11 日
Could anyone help me how to type different symbols for the legend in the graph
  3 件のコメント
Prabha Kumaresan
Prabha Kumaresan 2018 年 7 月 11 日
I want to plot 10 different lines on the same graph in black colour. But i need to plot the 10 lines using different notations inorder to differentiate them.could you please help me on this
Jan
Jan 2018 年 7 月 11 日
What exactly is the problem? The legend or the plotting? Please show the current code.

サインインしてコメントする。

回答 (1 件)

Akbar
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

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by