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!