Difference between revisions of "Xyz2sph.m"
m (Spot-edit Spinach function page first-line NOTOC and template fields) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
[r,theta,phi] = xyz2sph(x,y,z) | [r,theta,phi] = xyz2sph(x,y,z) | ||
| − | == | + | ==Parameters== |
x,y,z - arrays of X, Y and Z coordinates | x,y,z - arrays of X, Y and Z coordinates | ||
Revision as of 18:53, 5 June 2026
Converts Cartesian coordinates [x y z] into spherical coordinates according to the ISO convention.
Syntax
[r,theta,phi] = xyz2sph(x,y,z)
Parameters
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