Effacer les filtres
Effacer les filtres

Find coordinates of the point in inpolygon.

4 vues (au cours des 30 derniers jours)
SUSHMA MB
SUSHMA MB le 25 Avr 2015
Modifié(e) : SUSHMA MB le 25 Avr 2015
How can i find the coordinates of the points obtained using inpolygon function. For ex:
L = linspace(0,2.*pi,6);
xv = cos(L)';
v = sin(L)';
rng default
xq = randn(250,1);
yq = randn(250,1);
[in,on] = inpolygon(xq,yq,xv,yv);
I n the above example the values in [in, on] are retured as 1 or 0. How can i find the coordinates of the points that are inside the polygon?

Réponses (0)

Catégories

En savoir plus sur Elementary Polygons dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by