Next: Mathematical Constants, Previous: Special Functions, Up: Arithmetic

— Function File: **[**`theta, r`]` = cart2pol `(`x, y`)

— Function File:**[**`theta, r, z`]` = cart2pol `(`x, y, z`)

— Function File:

Transform cartesian to polar or cylindrical coordinates.

x,y(andz) must be of same shape.thetadescribes the angle relative to the x - axis.ris the distance to the z - axis (0, 0, z).

— Function File: **[**`x, y`]` = pol2cart `(`theta, r`)

— Function File:**[**`x, y, z`]` = pol2cart `(`theta, r, z`)

— Function File:

Transform polar or cylindrical to cartesian coordinates.

theta,r(andz) must be of same shape.thetadescribes the angle relative to the x - axis.ris the distance to the z - axis (0, 0, z).