how to make rectangle in circle?
古いコメントを表示
採用された回答
その他の回答 (1 件)
Image Analyst
2022 年 11 月 19 日
0 投票
See the FAQ:
Then plot it with plot and then for each x and y value you want find the end points of a line segment and use line() or plot() to draw the line from one side of the circle to the other. It's easy but if you really can't figure it out then write back.
3 件のコメント
Sierra
2022 年 11 月 20 日
Image Analyst
2022 年 11 月 20 日
You do not ned to know the crossing/intersection coordinates of the vertical and horizontal lines inside the circle. All you need to know for the horizontal lines is the y value and the two points on the circle closest to that y value. Similar for the lines in the other direction. But it looks like @Matt J suggested a different approach and you accepted that so I won't proceed with my approach.
Sierra
2022 年 11 月 20 日
カテゴリ
ヘルプ センター および File 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!


