How to set legend for a line segment?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to add legend to this?: line([x1 x2],[y1,y2],'color','r','linestyle','--');
0 commentaires
Réponses (1)
Thorsten
le 5 Nov 2015
x1 = 10; x2 = 20; y1 = 12; y2 = 34;
line([x1 x2],[y1,y2],'color','r','linestyle','--');
legend('my dashed red line')
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!