pol2cart EMTTOOL qwt1

EMTTOOL >> EMTTOOL > pol2sph

pol2sph

Transform Polar to spherical coordinates

Calling Sequence

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

Parameters

phi

azimuth angle

p

radius in xy plane

z

z coordinate

r

radius

theta

elevation angle

Description

pol2sph(phi,p,z) transforms corresponding elements of data stored in Polar coordinates phi,p,z to spherical coordinates (radius r, elevation angle theta, azimuth angle phi). phi and theta are returned in radians. The arrays phi,p, and z must be the same size (or any of them can be scalar).

Examples

add sample pgm

See Also

Author

pol2cart EMTTOOL qwt1