How to set legend for a line segment?
조회 수: 3 (최근 30일)
이전 댓글 표시
How to add legend to this?: line([x1 x2],[y1,y2],'color','r','linestyle','--');
댓글 수: 0
답변 (1개)
Thorsten
2015년 11월 5일
x1 = 10; x2 = 20; y1 = 12; y2 = 34;
line([x1 x2],[y1,y2],'color','r','linestyle','--');
legend('my dashed red line')
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!