how to draw perpendicular line on angular line..
조회 수: 1 (최근 30일)
이전 댓글 표시
how to draw perpendicular line on angular line..
댓글 수: 0
답변 (2개)
David Sanchez
2013년 11월 12일
You can use line and swap the Y-coordinate values to get the perpendicular line:
line([2 5],[3 7])
hold on
line([2 5],[7 3])
axis square
hold off
Image Analyst
2013년 11월 12일
Why is this tagged Bresenham? Do you have a digitized "canvass" that you have to draw this on? If not, then the line() function will draw continuous lines with no gaps and you don't have to worry about Bresenham. If you have an image and you want to "burn it into" the image, then you could use Bresenham but you don't have to because imline() will do it for you.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!