points lying inside a polygon and a circle
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
KalMandy
el 30 de En. de 2017
How can I find the number of point lies inside both a circle and a polygon (the point should lie in the mutual/overlapping area in between the circle and the polygon) ?
0 comentarios
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 30 de En. de 2017
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 comentarios
hanif hamden
el 25 de Abr. de 2019
If i put (x,y) in geographical coordinate and I want my radius is 10km. How should I do that?
Ver también
Categorías
Más información sobre Elementary Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!