How to find intersection points of 3 circles?

3 ビュー (過去 30 日間)
Cladio Andrea
Cladio Andrea 2015 年 1 月 17 日
回答済み: Image Analyst 2015 年 1 月 17 日
Hello, i have now a problem. I want to find the intersection points of these black area in the picture. i can find the intersection points of these three. But i want to have a code that calculate all the points of intersection points such as, 1 with 2, 2 with 3, 1 with 3 and 1,2,3, In the i wanna have something like:
  • 1-2 intersection points minus 1,2,3 intersection points
  • 1-3 intersection points minus 1,2,3 intersection points
  • 1-2 intersection points minus 1,2,3 intersection points
  • 1,2,3 intersection points
and then sum of these 4. Is there any easy way to do that. Thank you!
  1 件のコメント
Cladio Andrea
Cladio Andrea 2015 年 1 月 17 日
編集済み: Geoff Hayes 2015 年 1 月 17 日
intersect(intersect(xq(in2),xq(in3)),xq(in4));
thats the code for intersection of these 3 circles

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2015 年 1 月 17 日
It's just a pair of nested for loops - I'm sure you can figure it out.
for k = 1:3
for t = (k+1) : 3
% Determine intersections.
end
end

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by