Calculate area of inside polygon using inpolygon

4 visualizaciones (últimos 30 días)
Anitha Limann
Anitha Limann el 20 de Oct. de 2022
Comentada: Star Strider el 20 de Oct. de 2022
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

Respuesta aceptada

Star Strider
Star Strider el 20 de Oct. de 2022
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 comentarios
Anitha Limann
Anitha Limann el 20 de Oct. de 2022
Thank you I will try again.
Star Strider
Star Strider el 20 de Oct. de 2022
My pleasure!

Iniciar sesión para comentar.

Más respuestas (1)

Matt J
Matt J el 20 de Oct. de 2022
Editada: Matt J el 20 de Oct. de 2022
The polyarea command is for calculating polygon areas.
You can also use polyshape.area.
  1 comentario
Anitha Limann
Anitha Limann el 20 de Oct. de 2022
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by