Could anyone help me how to type different symbols for the legend in the graph
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Could anyone help me how to type different symbols for the legend in the graph
3 Kommentare
Jan
am 11 Jul. 2018
What exactly is the problem? The legend or the plotting? Please show the current code.
Antworten (1)
Akbar
am 11 Jul. 2018
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 Kommentare
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!