sph2cart EMTTOOL steer

EMTTOOL >> EMTTOOL > sph2pol

sph2pol

Transform Spherical to polar coordinates

Calling Sequence

[phi,p,z]=sph2pol(r,theta,phi)

Parameters

r

radius

theta

elevation angle

phi

azimuth angle

p

radius in xy plane

z

z coordinate

Description

sph2pol(r,theta,phi) transforms corresponding elements of data stored in spherical coordinates r,theta,phi to cylindrical coordinates (angle phi, radius p, height Z). phi is returned in radians. The arrays r,theta and phi must be the same size (or any of them can be scalar).

Examples

add sample pgm

See Also

Author

sph2cart EMTTOOL steer