overlap between between multiple circles using circcirc
古いコメントを表示
Hi all,
I have 10 circles with random center positions but with same radius (but the radius, R= r1:r2). I want to find the intersection points where these circles overlap with eachother at each value of the radius. How can I find these points/ x,y coordinates using the circcirc function inside a for loop?
Thank you.
1 件のコメント
Asatur Khurshudyan
2019 年 12 月 20 日
編集済み: Asatur Khurshudyan
2019 年 12 月 20 日
回答 (1 件)
Image Analyst
2017 年 3 月 24 日
0 投票
Try poly2mask()
5 件のコメント
KalMandy
2017 年 3 月 24 日
Image Analyst
2017 年 3 月 24 日
What EXACTLY do you want to know? Let's say that you have 10 circles. Do you want to know
- The (x,y) coordinates of where circle #1 overlaps circle #2
- The (x,y) coordinates of where circle #1 overlaps circle #3
- The (x,y) coordinates of where circle #1 overlaps circle #4
- The (x,y) coordinates of where circle #1 overlaps circle #5
- The (x,y) coordinates of where circle #1 overlaps circle #6
- The (x,y) coordinates of where circle #1 overlaps circle #7
- The (x,y) coordinates of where circle #1 overlaps circle #8
- The (x,y) coordinates of where circle #1 overlaps circle #9
- The (x,y) coordinates of where circle #1 overlaps circle #10
- The (x,y) coordinates of where circle #2 overlaps circle #3
- The (x,y) coordinates of where circle #2 overlaps circle #4
- The (x,y) coordinates of where circle #2 overlaps circle #5
- The (x,y) coordinates of where circle #2 overlaps circle #6
and so on - a full factorial of every possible combination of every circle overlapping with every other circle? If so, WHY ? Explain the user case.
Or do you just want the (x,y) coordinates of where the perimeters cross? If so, you can just set the two equations equal to each other and solve for x and y using solve(), or roots() or something like that.
Image Analyst
2017 年 3 月 25 日
In some cases there will not be coordinates since the circles do not overlap.
KalMandy
2017 年 3 月 25 日
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!