Surface bounded by a polygon
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarah Andrade
am 26 Sep. 2017
Kommentiert: Daniel Faller
am 7 Aug. 2021
I have a polygon and a surface that covers only part of this polygon (this is in 2-D x and y axis). Is there any way to delimit the surface by the polygon? I want only the part that is inside the polygon.
Thanks.
0 Kommentare
Akzeptierte Antwort
Chad Greene
am 26 Sep. 2017
Without any sample data or illustrations it's mighty difficult to know exactly what you mean, but it sounds like inpolygon is the function you're looking for. Just feed it the x,y locations of your surface (generated by meshgrid) and it will tell you which corresponding surface locations are inside the polygon.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots 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!


