polyarea
Area of polygon
Description
a = polyarea(
returns the area of the 2-D polygon defined by the vertices in vectors x,y)x
and y.
If
xandyare vectors of the same length, thenpolyareareturns the scalar area of the polygon defined byxandy.If
xandyare matrices of the same size, thenpolyareareturns a row vector containing the areas of each polygon defined by the columnwise pairs inxandy.If
xandyare multidimensional arrays, thenpolyareaoperates along the first dimension whose length is not equal to 1.
Examples
Input Arguments
Tips
The area value returned by
polyareacan depend on the order of the input points.
Extended Capabilities
Version History
Introduced before R2006a
See Also
nsidedpoly | polyshape | inpolygon | rectint
