Search code examples
matlabpolygonarea

Calculating area on N points


Im trying to calculate numerically an area of different shapes where the only thing I know about them is the (x,y) of each corner.

For example the shapes are:

enter image description here enter image description here

P.s. The points inside the shape are for other calculation, I only need the area of the most outer shape.

Thank you.


Solution

  • Create polygon, and use polyarea function.

    Given x,y location of corners than:

    Area=polyarea(x,y)