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!