how to use inpolygon function
Mostrar comentarios más antiguos
Hi,
I have two polygons with different number of vertices:
polygon1= [0.1624 -0.6477;
0.2247 -0.6477;
0.2247 0.3874;
0.1624 0.5219]
polygon2= [0.1624 0.5219;
0.2247 0.3874;
0.2247 0.5651]
Where the first column is X-coordinates and the second column in Y-coordinates. I want to know if a any random point is in the first or second polygon. How can I do that? I read the documentation of this function (inpolygon) but I don't understand it well.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Computational Geometry en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!