Home > freetb4matlab > general > cart2pol.m

cart2pol

PURPOSE ^

% Transform Cartesian to polar or cylindrical coordinates.

SYNOPSIS ^

function [theta, r, z] = cart2pol (x, y, z)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn  {Function File} {[@var{theta}, @var{r}] =} cart2pol (@var{x}, @var{y})
% @deftypefnx {Function File} {[@var{theta}, @var{r}, @var{z}] =} cart2pol (@var{x}, @var{y}, @var{z})
% Transform Cartesian to polar or cylindrical coordinates.
% @var{x}, @var{y} (and @var{z}) must be the same shape, or scalar.
% @var{theta} describes the angle relative to the positive x-axis.
% @var{r} is the distance to the z-axis (0, 0, z).
% @seealso{pol2cart, cart2sph, sph2cart}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003