how to plot verticle lines?

조회 수: 1 (최근 30일)
Jens Petit-jean
Jens Petit-jean 2020년 11월 30일
댓글: Jens Petit-jean 2020년 11월 30일
Hello,
How do I plot vercicle lines that go up to y-value 10?
thanks in advance

채택된 답변

John D'Errico
John D'Errico 2020년 11월 30일
편집: John D'Errico 2020년 11월 30일
Plot two points, connected by a line. Both points will have the same value for x. You can choose the start and end point in y to plot. Don't use a marker. WTP?
Or, you could use the function xline.
  댓글 수: 4
Adam Danz
Adam Danz 2020년 11월 30일
Or use stem
stem(10,'Marker','none')
ylim([0,12])
Jens Petit-jean
Jens Petit-jean 2020년 11월 30일
thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by