xyz2sph.m

From Spinach Documentation Wiki
Jump to: navigation, search

Converts Cartesian coordinates [x y z] into spherical coordinates according to the ISO convention.

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

euler2dcm.m, wigner.m


Version 2.1, authors: Ilya Kuprov, Elizaveta Suturina