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!