Determining point is within polygon or outside.

1 vue (au cours des 30 derniers jours)
Ramesh Bala
Ramesh Bala le 25 Juil 2018
Commenté : Adam Danz le 25 Juil 2018
so far I have coded a profile and a user input to plot the points if inside or outside. any improvement to the code is appreciable
  9 commentaires
Ramesh Bala
Ramesh Bala le 25 Juil 2018
Thanks für the reply. I actually tried using inpolygon for the code ,it didn't worked well as I'm selecting only 2 coords as user input .I think it works with random points. So here im trying to print a statement saying ginputs are within profile or outside profile using inpolygon Function. Actually the present code shows the points in and out in colours. I need to attach a print statement to it .
Adam Danz
Adam Danz le 25 Juil 2018
Kaleesh,m see your other thread where I answered this question. inpolygon() does work well with your code.

Connectez-vous pour commenter.

Réponses (0)

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by