cart2pol EMTTOOL chebarray

EMTTOOL >> EMTTOOL > cart2sph

cart2sph

Transform Cartesian to spherical coordinates

Calling Sequence

[r,theta,phi]=cart2sph(x,y,z)

Parameters

x,y,z

x,y,z coordinates

r

radius

theta

elevation angle

phi

azimuth angle

Description

cart2sph(x,y,z) transforms corresponding elements of data stored in Cartesian coordinates X,Y,Z to spherical coordinates (radius r, elevation angle theta, azimuth angle phi). phi and theta are 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

cart2pol EMTTOOL chebarray