FUNCTION REFERENCE
sph2cart
Spherical to Cartesian coordinates.
Spherical to Cartesian coordinates.
Syntax
[x, y, z] = sph2cart(azimuth, elevation, r)x is r.*cos(elevation).*cos(azimuth), y is r.*cos(elevation).*sin(azimuth) and z is r.*sin(elevation). Inputs must have the same size, or be scalar.
Example
[x, y, z] = sph2cart(0, 0, 1); [x y z] % [1 0 0]Differences from MATLAB: Real double inputs only; complex, character, logical and cell input stop with an error.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.