Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

polyarea (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the geometry class.

Syntax

polyarea(x, y)

a = polyarea(x, y)

Description

Calculates the area of a polygon.

Examples

Inputs

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).

Outputs

Name Description
a Returns the area of the polygon.

Examples

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

Related Topics

inpolygon


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit