필터 지우기
필터 지우기

How to draw a vertical line with a given height?

조회 수: 51 (최근 30일)
Lilllly
Lilllly 2016년 5월 4일
답변: CS Researcher 2016년 5월 4일
I use
line([1 1]*posx)
to draw a vertical line in a figure. Can I also draw a vertical line with a specific height?

채택된 답변

CS Researcher
CS Researcher 2016년 5월 4일
For a line from (x,y) to (x,y+height), Use this:
line([x x], [y y+height]);
From origin it could just be
line([0 0], [0 height]);

추가 답변 (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