% -*- 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