FUNCTION REFERENCE
polyarea
Calculate polygon areas.
Calculate polygon areas.
Syntax
polyarea(X, Y); polyarea(X, Y, DIM)X and Y must have the same size. Computes the absolute shoelace area along the first nonsingleton dimension, or DIM=1 or 2. The last vertex is connected to the first.
Example
polyarea([0 1 0], [0 0 1]) % 0.5000Differences from MATLAB: N-D arrays are not supported yet; DIM greater than 2 returns zeros(size(X)).
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.