필터 지우기
필터 지우기

Plotting a vertical line using ezplot

조회 수: 6 (최근 30일)
Brooke
Brooke 2012년 9월 5일
I have a graph and I would like to add a vertical line say x=1 to the graph. how might I do that? (Perhaps ezplot doesn't work for that?)
thank you!

채택된 답변

Matt Fig
Matt Fig 2012년 9월 5일
편집: Matt Fig 2012년 9월 5일
This will put a vertical line in the middle of the axes. Adjust as needed.
LIM = get(gca,{'xlim','ylim'});
L = line(mean(LIM{1})*[1 1],LIM{2});

추가 답변 (0개)

카테고리

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