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!