MATLAB Function Reference
  Go to function:
    Search    Help Desk 
polyarea    Examples   See Also

Area of polygon

Syntax

Description

A = polyarea(X,Y) returns the area of the polygon specified by the vertices in the vectors X and Y.

If X and Y are matrices of the same size, then polyarea returns the area of polygons defined by the columns X and Y.

If X and Y are multidimensional arrays, polyarea returns the area of the polygons in the first nonsingleton dimension of X and Y.

A = polyarea(X,Y,dim) operates along the dimension specified by scalar dim.

Examples

See Also

convhull    Convex hull

inpolygon   Detect points inside a polygonal region



[ Previous | Help Desk | Next ]