필터 지우기
필터 지우기

Calculate area of inside polygon using inpolygon

조회 수: 3 (최근 30일)
Anitha Limann
Anitha Limann 2022년 10월 20일
댓글: Star Strider 2022년 10월 20일
Hello,
I have latitude and longitude data to plot coastal line of north america and then continent margin. As you can imagine this is going to be two irregular polygons where the coastline polygon will be placed within the continent margin polygon.
I want to plot these two polygons and calculate the area of land region (the area within inside polygon) using inpolygon function. I would truly appreciate if someone could help me with this.
thank you

채택된 답변

Star Strider
Star Strider 2022년 10월 20일
There are Mapping Toolbox functions areaint and similar functions to do this. Those might be more appropriate. Follow the links in that and related documentation for other such functions.
  댓글 수: 4
Anitha Limann
Anitha Limann 2022년 10월 20일
Thank you I will try again.
Star Strider
Star Strider 2022년 10월 20일
My pleasure!

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

추가 답변 (1개)

Matt J
Matt J 2022년 10월 20일
편집: Matt J 2022년 10월 20일
The polyarea command is for calculating polygon areas.
You can also use polyshape.area.
  댓글 수: 1
Anitha Limann
Anitha Limann 2022년 10월 20일
Thank you for your reply.
There are some places where boundaries overlap. from what I understood this function colors those areas and calculate the total area of all those overlaps.

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

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by