i want to define a area that is polygonal. how can i determine a nu piont is in the polygonal or not??
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mili Kian
am 12 Apr. 2020
Kommentiert: Mili Kian
am 14 Apr. 2020
I want to define a area that is polygonal. how can i determine any piont is in the polygon or not??
0 Kommentare
Akzeptierte Antwort
John D'Errico
am 12 Apr. 2020
help polyshape
Once you learn to create a polyshape, which is very easy. In fact, there are examples of using polyshape right in the help.
Then look at isinterior, which tests to see if a point is inside the polyshape you just created.
help isinterior
4 Kommentare
John D'Errico
am 13 Apr. 2020
Then you apparently have an old copy of MATLAB. It always helps if you tell us what release you have, otherwise you will get answers that are invalid for you.
The solution is to either upgrade your MATLAB release, as there are many things that have been introduced over the years, OR you can use an older tool that has been in MATLAB for many years: inpolygon.
Read the help for inpolygon. It will have examples of use in there.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!