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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

[x, y] = pol2cart(a, b)

[x, y, z] = pol2cart(a, b, c)

Description

Converts 2D or 3D polar data to Cartesian data. This function works element-wise for matrices.

Details

Examples

Inputs

Name Description
a Specifies the angles of the polar data. a is a matrix.
b Specifies the radii of the polar data. b is a matrix of the same size as a.
c Specifies the heights of the polar data. c is a matrix of the same size as a.

Outputs

Name Description
x Returns the x-coordinates of the Cartesian data. x is a matrix of the same size as a.
y Returns the y-coordinates of the Cartesian data. y is a matrix of the same size as a.
z Returns the z-coordinates of the 3D Cartesian data. z is equivalent to c. z is a matrix of the same size as c.

Details

LabVIEW computes x and y according to the following equations:
x = b.*cos(a).
y = b.*sin(a).

Examples

[X, Y, Z] = pol2cart(1, 1, 1)

Related Topics

cart2pol


Resources


 

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