Determines area of a polygon by triangle method. The variables
y define the vertex pairs, and must therefore
have the same shape. They can be either vectors or arrays. If
they are arrays then the columns of
treated separately and an area returned for each.
polyarea(x, y, d = 1)
X coordinates of verticies.
Y coordinates of verticies.
Dimension of array to work along.
If the optional
dim argument is given, then
works along this dimension of the arrays
Area(s) of polygon(s).
David Sterratt based on the octave sources by David M. Doolin
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.