how to specify points outside a polygon?

3 vues (au cours des 30 derniers jours)
Leon
Leon le 8 Mai 2018
Réponse apportée : Leon le 8 Mai 2018
For example, in the below code, I can specify the points inside the polygon. How about outside the polygon? How do I specify that?
IN = inpolygon(lon, lat, x0, y0);
lon = lon(IN);
lat = lat(IN);
ph1 = ph1(IN);

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Mai 2018
IN = inpolygon(lon, lat, x0, y0);
lon = lon(~IN);
lat = lat(~IN);
ph1 = ph1(~IN);

Plus de réponses (1)

Leon
Leon le 8 Mai 2018
Many thanks for the help!

Catégories

En savoir plus sur Transportation Engineering dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by