Owning Class: basic
Requires: MathScript RT Module
[x, y] = polar_to_cart(a, b)
[x, y, z] = polar_to_cart(a, b, c)
Legacy Name: pol2cart
Converts 2D or 3D polar data to Cartesian data. This function works element-wise for matrices.
Name | Description |
---|---|
a | Specifies the angles of the polar data. a is a matrix of double-precision, floating-point numbers. |
b | Specifies the radii of the polar data. b is a matrix of double-precision, floating-point numbers of the same size as a. |
c | Specifies the heights of the polar data. c is a matrix of double-precision, floating-point numbers of the same size as a. |
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. |
LabVIEW computes x and y according to the following equations:
x = b.*cos(a).
y = b.*sin(a).
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 | Yes |
[X, Y, Z] = polar_to_cart(1, 1, 1)