How to draw x=2 line using plot command

3 vues (au cours des 30 derniers jours)
Atom
Atom le 15 Fév 2013
I want to draw the vertical line x=2. I want to draw it by using plot command in x-y plane, x-is the horizontal axis. How to draw it?
I do not want to use the following
line([2 2], [0 10])
to draw a line from (2,0) to (2,10)

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 15 Fév 2013
Modifié(e) : Azzi Abdelmalek le 15 Fév 2013
plot([2 2], [0 10])
%or maybe you want
plot([2 2],ylim)

Plus de réponses (1)

ToLos Mil
ToLos Mil le 15 Fév 2013
See the answer given at the following link

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by