Drawing line from center to other three points
3 ビュー (過去 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!