How to set legend for a line segment?
8 ビュー (過去 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!