overlap between between multiple circles using circcirc
Show older comments
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 Comment
Asatur Khurshudyan
on 20 Dec 2019
Edited: Asatur Khurshudyan
on 20 Dec 2019
Answers (1)
Image Analyst
on 24 Mar 2017
0 votes
Try poly2mask()
5 Comments
KalMandy
on 24 Mar 2017
Image Analyst
on 24 Mar 2017
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
on 25 Mar 2017
In some cases there will not be coordinates since the circles do not overlap.
KalMandy
on 25 Mar 2017
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!