xyz2sph.m

From Spinach Documentation Wiki
Revision as of 12:31, 25 April 2026 by Kuprov (talk | contribs) (Normalise sequential blank lines)
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