GNU Octave Manual Version 3by John W. Eaton, David Bateman, Søren Hauberg Paperback (6"x9"), 568 pages ISBN 095461206X RRP £24.95 ($39.95) |

## 17.6 Coordinate Transformations

__Function File:__[`theta`,`r`] =**cart2pol***(*`x`,`y`)__Function File:__[`theta`,`r`,`z`] =**cart2pol***(*`x`,`y`,`z`)- Transform cartesian to polar or cylindrical coordinates.
`x`,`y`(and`z`) must be of same shape.`theta`describes the angle relative to the x-axis.`r`is the distance to the z-axis (0, 0, z).See also pol2cart, cart2sph, sph2cart

__Function File:__[`x`,`y`] =**pol2cart***(*`theta`,`r`)__Function File:__[`x`,`y`,`z`] =**pol2cart***(*`theta`,`r`,`z`)- Transform polar or cylindrical to cartesian coordinates.
`theta`,`r`(and`z`) must be of same shape.`theta`describes the angle relative to the x-axis.`r`is the distance to the z-axis (0, 0, z).See also cart2pol, cart2sph, sph2cart

__Function File:__[`theta`,`phi`,`r`] =**cart2sph***(*`x`,`y`,`z`)- Transform cartesian to spherical coordinates.
`x`,`y`and`z`must be of same shape.`theta`describes the angle relative to the x-axis.`phi`is the angle relative to the xy-plane.`r`is the distance to the origin (0, 0, 0).See also pol2cart, cart2pol, sph2cart

__Function File:__[`x`,`y`,`z`] =**sph2cart***(*`theta`,`phi`,`r`)- Transform spherical to cartesian coordinates.
`x`,`y`and`z`must be of same shape.`theta`describes the angle relative to the x-axis.`phi`is the angle relative to the xy-plane.`r`is the distance to the origin (0, 0, 0).See also pol2cart, cart2pol, cart2sph

ISBN 095461206X | GNU Octave Manual Version 3 | See the print edition |