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

polygonarea (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: geometry

Requires: MathScript RT Module

Syntax

polygonarea(x, y)

a = polygonarea(x, y)

Legacy Name: polyarea

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)
polygonarea(x, y)

Related Topics

is_inpolygon


 

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