legend on a plot.
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi All, I Plot a 250x10 matrix. But I only want the legend for the 3rd 5th and 9th element.
How can I do this?
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 7월 16일
Use the handle explicitly:
h = plot(cumsum(rand(250,10)));
legend(h([3 5 9]),'third','fifth','ninth')
And for more info:
doc legend
댓글 수: 0
추가 답변 (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!