xyz2sph.m
Converts Cartesian coordinates [x y z] into spherical coordinates according to the ISO convention.
Contents
Syntax
[r,theta,phi] = xyz2sph(x,y,z)
Arguments
x,y,z - arrays of X, Y and Z coordinates
Outputs
r - array of radii
theta - array of inclinations
phi - array of azimuth values
See also
Version 2.1, authors: Ilya Kuprov, Elizaveta Suturina