PO_matlab
|
Converts Cartesian coordinates to cylindrical coordinates. More...
Functions | |
function | mycart2cyl (in x, in y, in z) |
Converts Cartesian coordinates to cylindrical coordinates.
Given Cartesian coordinates (x, y, z), this function returns the corresponding cylindrical coordinates: radial distance rho, azimuthal angle phi, and z.
x | X-coordinate(s) |
y | Y-coordinate(s) |
z | Z-coordinate(s) |
rho | Radial distance(s) from the origin |
phi | Azimuthal angle(s) in radians |
z | Z-coordinate(s), unchanged from input |
function mycart2cyl | ( | in | x, |
in | y, | ||
in | z ) |