[x,y] =
pol2cart(theta,rho) transforms
corresponding elements of the polar coordinate arrays theta and rho to
two-dimensional Cartesian, or xy, coordinates.
[x,y,z]
= pol2cart(theta,rho,z) transforms
corresponding elements of the cylindrical coordinate arrays theta, rho,
and z to three-dimensional Cartesian, or xyz,
coordinates.
Convert the cylindrical coordinates defined by corresponding entries in the matrices theta, rho, and z to three-dimensional Cartesian coordinates x, y, and z.
Angular coordinate, specified as a scalar, vector, matrix, or
multidimensional array. theta, rho,
and z must be the same size, or any of them can
be scalar.
theta is the counterclockwise angle in the x-y plane
measured in radians from the positive x-axis.
Data Types: single | double Complex Number Support: Yes
Radial coordinate, specified as a scalar, vector, matrix, or
multidimensional array. theta, rho,
and z must be the same size, or any of them can
be scalar.
rho is the distance from the origin to a
point in the x-y plane.
Data Types: single | double Complex Number Support: Yes
Elevation coordinate, specified as a scalar, vector, matrix,
or multidimensional array. theta, rho,
and z must be the same size, or any of them can
be scalar.
z is the height above the x-y plane.
Data Types: single | double Complex Number Support: Yes