points lying inside a polygon and a circle
7 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
その他の回答 (1 件)
Image Analyst
2017 年 1 月 30 日
Did you try
count = 0;
if inpolygon(x,y,xCircle,yCircle) && inpolygon(x,y,xPoly,yPoly)
count = count + 1
end
where you call inpolygon twice, once passing in the circle coordinates and once passing in the polygon coordinates and then ANDing the two results together?
6 件のコメント
hanif hamden
2019 年 4 月 25 日
If i put (x,y) in geographical coordinate and I want my radius is 10km. How should I do that?
参考
カテゴリ
Help Center および File Exchange で Elementary Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!