[azimuth, elevation, r] = cart2sph(x, y, z)
| 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 |
| Parameter | Description |
|---|---|
| azimuth | a numeric value: Azimuth angle. |
| elevation | a numeric value: Elevation angle. |
| r | a numeric value: Radius. |
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)
| Version | Description |
|---|---|
| 1.0.0 | initial version |