フィルターのクリア

Surface bounded by a polygon

2 ビュー (過去 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 Center および File ExchangeComputational Geometry についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by