Difference between revisions of "Xyz2sph.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:xyz2sph.m}} Converts Cartesian coordinates [x y z] into spherical coordinates according to the ISO convention. ==Syntax== [r,theta,phi] = xyz2sph(x,y,z)...")
 
(→‎See also)
Line 19: Line 19:
  
 
==See also==
 
==See also==
−
[[euler2dcm.m]], [[euler2wigner.m]]
+
[[euler2dcm.m]], [[wigner.m]]
  
  
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Elizaveta Suturina]]''
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Elizaveta Suturina]]''

Revision as of 16:35, 3 January 2018

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