points lying inside a polygon and a circle
10 次查看(过去 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 中查找有关 Computational Geometry 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!