How to draw a vertical line with a given height?
조회 수: 51 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!