(octave.info)Coordinate Transformations
17.8 Coordinate Transformations
===============================
-- : [THETA, R] = cart2pol (X, Y)
-- : [THETA, R, Z] = cart2pol (X, Y, Z)
-- : [THETA, R] = cart2pol (C)
-- : [THETA, R, Z] = cart2pol (C)
-- : P = cart2pol (...)
Transform Cartesian coordinates to polar or cylindrical
coordinates.
The inputs X, Y (, and Z) must be the same shape, or scalar. If
called with a single matrix argument then each row of C represents
the Cartesian coordinate (X, Y (, Z)).
THETA describes the angle relative to the positive x-axis.
R is the distance to the z-axis (0, 0, z).
If only a single return argument is requested then return a matrix
P where each row represents one polar/(cylindrical) coordinate
(THETA, PHI (, Z)).
See also: Note: pol2cart, *note cart2sph:
XREFcart2sph, Note: sph2cart.
-- : [X, Y] = pol2cart (THETA, R)
-- : [X, Y, Z] = pol2cart (THETA, R, Z)
-- : [X, Y] = pol2cart (P)
-- : [X, Y, Z] = pol2cart (P)
-- : C = pol2cart (...)
Transform polar or cylindrical coordinates to Cartesian
coordinates.
The inputs THETA, R, (and Z) must be the same shape, or scalar. If
called with a single matrix argument then each row of P represents
the polar/(cylindrical) coordinate (THETA, R (, Z)).
THETA describes the angle relative to the positive x-axis.
R is the distance to the z-axis (0, 0, z).
If only a single return argument is requested then return a matrix
C where each row represents one Cartesian coordinate (X, Y (, Z)).
See also: Note: cart2pol, *note sph2cart:
XREFsph2cart, Note: cart2sph.
-- : [THETA, PHI, R] = cart2sph (X, Y, Z)
-- : [THETA, PHI, R] = cart2sph (C)
-- : S = cart2sph (...)
Transform Cartesian coordinates to spherical coordinates.
The inputs X, Y, and Z must be the same shape, or scalar. If
called with a single matrix argument then each row of C represents
the Cartesian coordinate (X, Y, Z).
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).
If only a single return argument is requested then return a matrix
S where each row represents one spherical coordinate (THETA, PHI,
R).
See also: Note: sph2cart, *note cart2pol:
XREFcart2pol, Note: pol2cart.
-- : [X, Y, Z] = sph2cart (THETA, PHI, R)
-- : [X, Y, Z] = sph2cart (S)
-- : C = sph2cart (...)
Transform spherical coordinates to Cartesian coordinates.
The inputs THETA, PHI, and R must be the same shape, or scalar. If
called with a single matrix argument then each row of S represents
the spherical coordinate (THETA, PHI, R).
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).
If only a single return argument is requested then return a matrix
C where each row represents one Cartesian coordinate (X, Y, Z).
See also: Note: cart2sph, *note pol2cart:
XREFpol2cart, Note: cart2pol.
automatically generated by info2www version 1.2.2.9