c2p EMTTOOL cart2sph

EMTTOOL >> EMTTOOL > cart2pol

cart2pol

Transform Cartesian to polar coordinates

Calling Sequence

[phi,p,z]=cart2pol(x,y,z)

Parameters

x,y,z

x,y,z coordinates

phi

azimuth angle

p

radius in xy plane

Description

cart2pol(x,y,z) transforms corresponding elements of data stored in Cartesian coordinates X,Y,Z to cylindrical coordinates (radius p, azimuth angle phi). phi is returned in radians. The arrays X,Y, and Z must be the same size (or any of them can be scalar).

Examples

add sample pgm

See Also

Author

c2p EMTTOOL cart2sph