How to draw x=2 line using plot command

조회 수: 5 (최근 30일)
Atom
Atom 2013년 2월 15일
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)

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 15일
편집: Azzi Abdelmalek 2013년 2월 15일
plot([2 2], [0 10])
%or maybe you want
plot([2 2],ylim)

추가 답변 (1개)

ToLos Mil
ToLos Mil 2013년 2월 15일
See the answer given at the following link

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by