Surface bounded by a polygon

조회 수: 1 (최근 30일)
Sarah Andrade
Sarah Andrade 2017년 9월 26일
댓글: Daniel Faller 2021년 8월 7일
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.

채택된 답변

Chad Greene
Chad Greene 2017년 9월 26일
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
Sarah Andrade
Sarah Andrade 2017년 9월 27일
Thank you so much, Chad!!
Daniel Faller
Daniel Faller 2021년 8월 7일
Thank very much, Chad! I really had some use for your answer!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by