[theta, rho] = cart2pol(x, y)
[theta, rho, z] = cart2pol(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 |
|---|---|
| theta | a numeric value: Angular coordinate. |
| rho | a numeric value: Radial coordinate. |
| z | a numeric value: Elevation coordinate. |
x = [5 3.5355 0 -10];
y = [0 3.5355 10 0];
[theta, rho] = cart2pol(x, y)
x = [1 2.1213 0 -5];
y = [0 2.1213 4 0];
z = [7 8 9 10];
[theta, rho, el] = cart2pol(x, y, z)
| Version | Description |
|---|---|
| 1.0.0 | initial version |