How to draw a vertical line with a given height?
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lilllly
le 4 Mai 2016
Réponse apportée : CS Researcher
le 4 Mai 2016
I use
line([1 1]*posx)
to draw a vertical line in a figure. Can I also draw a vertical line with a specific height?
0 commentaires
Réponse acceptée
CS Researcher
le 4 Mai 2016
For a line from (x,y) to (x,y+height), Use this:
line([x x], [y y+height]);
From origin it could just be
line([0 0], [0 height]);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations 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!