Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

polygonarea (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: geometry

Requires: MathScript RT Module


polygonarea(x, y)

a = polygonarea(x, y)

Legacy Name: polyarea


Calculates the area of a polygon.



Name Description
x Specifies the x-coordinates of the polygon. length(x) must be greater than 2. If x is a matrix, each column of x specifies the x-coordinates of a polygon.
y Specifies the y-coordinates of the polygon. If y is a matrix, each column of y specifies the y-coordinates of a polygon. size(y) must equal size(x).


Name Description
a Returns the area of the polygon.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


z = 0:pi / 4:2*pi;
x = cos(z);
y = sin(z);
plot(x, y)
polygonarea(x, y)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful