Drawing line from center to other three points
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to know if its possible to draw lines from a vector which has two points and is the central point to another vector that has 3 points. Bassically, it like drawing a line from center to three points. I am using Matlab.
댓글 수: 0
채택된 답변
Image Analyst
2016년 2월 7일
편집: Image Analyst
2016년 2월 7일
Yes. You can use line() or plot();
line([xCenter, xVector(1)], [yCenter, yVector(1)], 'Color', 'r', 'LineWidth', 2);
line([xCenter, xVector(2)], [yCenter, yVector(2)], 'Color', 'r', 'LineWidth', 2);
line([xCenter, xVector(3)], [yCenter, yVector(3)], 'Color', 'r', 'LineWidth', 2);
댓글 수: 2
Image Analyst
2016년 2월 7일
Not sure what you mean. As long as you've set "hold on", you can just call plot().
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!