octave: 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)).
 
DONTPRINTYET       See also: Seepol2cart XREFpol2cart, *notecart2sph:
DONTPRINTYET       See also: Seepol2cart XREFpol2cart, Seecart2sph

      XREFcart2sph, Seesph2cart XREFsph2cart.
 
  -- : [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)).
 
DONTPRINTYET       See also: Seecart2pol XREFcart2pol, *notesph2cart:
DONTPRINTYET       See also: Seecart2pol XREFcart2pol, Seesph2cart

      XREFsph2cart, Seecart2sph XREFcart2sph.
 
  -- : [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).
 
DONTPRINTYET       See also: Seesph2cart XREFsph2cart, *notecart2pol:
DONTPRINTYET       See also: Seesph2cart XREFsph2cart, Seecart2pol

      XREFcart2pol, Seepol2cart XREFpol2cart.
 
  -- : [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).
 
DONTPRINTYET       See also: Seecart2sph XREFcart2sph, *notepol2cart:
DONTPRINTYET       See also: Seecart2sph XREFcart2sph, Seepol2cart

      XREFpol2cart, Seecart2pol XREFcart2pol.