manpagez: man pages & more
info octave
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.7 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 the same shape, or scalar. theta describes the angle relative to the positive 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 the same shape, or scalar. theta describes the angle relative to the positive 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 the same shape, or scalar. theta describes the angle relative to the positive 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 the same shape, or scalar. theta describes the angle relative to the positive 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.


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.