sph2cart
Transform spherical coordinates to Cartesian.
📝Syntax
[x, y, z] = sph2cart(azimuth, elevation, r)
📥Input Arguments
Parameter Description
azimuth a numeric value: Azimuth angle.
elevation a numeric value: Elevation angle.
r a numeric value: Radius.
📤Output 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
📄Description
sph2cart transforms Cartesian to spherical coordinates.
💡Examples
azimut = [0.7854, 0.7854, -0.7854, -0.7854; 2.3562, 2.3562, -2.3562, -2.3562];
elevation = [0.6155, -0.6155, 0.6155, -0.6155; 0.6155, -0.6155, 0.6155, -0.6155];
radius = 1.7321 * ones(2, 4);
[x, y, z] = sph2cart(azimut, elevation, radius)
🔗See Also
cart2sph
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub