polygonarea (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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.

Details

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

Examples

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

Related Topics

is_inpolygon

文章是否对您有帮助?

没有帮助