xyz2sph.m

From Spinach Documentation Wiki
Revision as of 18:30, 5 June 2026 by Kuprov (talk | contribs) (Spot-edit Spinach function page first-line NOTOC and template fields)
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