How to draw x=2 line using plot command

15 ビュー (過去 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 Center および File Exchange2-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