Home > freetb4matlab > general > sph2cart.m

sph2cart

PURPOSE ^

% Transform spherical to Cartesian coordinates.

SYNOPSIS ^

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

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{x}, @var{y}, @var{z}] =} sph2cart (@var{theta}, @var{phi}, @var{r})
% Transform spherical to Cartesian 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{phi} is the angle relative to the xy-plane.
% @var{r} is the distance to the origin (0, 0, 0).
% @seealso{pol2cart, cart2pol, cart2sph}
% @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