cart2sph
Transforms Cartesian to spherical coordinates.
📝Syntax
[azimuth, elevation, r] = cart2sph(x, y, z)
📥Input Arguments
Parameter Description
x a numeric value (double or single real): Cartesian coordinates
y a numeric value (double or single real): Cartesian coordinates
z a numeric value (double or single real): Cartesian coordinates
📤Output Arguments
Parameter Description
azimuth a numeric value: Azimuth angle.
elevation a numeric value: Elevation angle.
r a numeric value: Radius.
📄Description
cart2sph transforms Cartesian to spherical coordinates.
💡Examples
x = [1 1 1 1; -1 -1 -1 -1];
y = [1 1 -1 -1; 1 1 -1 -1];
z = [1 -1 1 -1; 1 -1 1 -1];
[az, el, r] = cart2sph(x, y, z)
🔗See Also
sph2cart
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub