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!