comparison scripts/general/sph2cart.m @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents 9761b7d24e9e
children 34f96dd5441b
comparison
equal deleted inserted replaced
5641:eb998631a4aa 5642:2618a0750ae6
22 ## Transform spherical to cartesian coordinates. 22 ## Transform spherical to cartesian coordinates.
23 ## @var{x}, @var{y} and @var{z} must be of same shape. 23 ## @var{x}, @var{y} and @var{z} must be of same shape.
24 ## @var{theta} describes the angle relative to the x-axis. 24 ## @var{theta} describes the angle relative to the x-axis.
25 ## @var{phi} is the angle relative to the xy-plane. 25 ## @var{phi} is the angle relative to the xy-plane.
26 ## @var{r} is the distance to the origin (0, 0, 0). 26 ## @var{r} is the distance to the origin (0, 0, 0).
27 ## @seealso{pol2cart, cart2pol, cart2sph}
27 ## @end deftypefn 28 ## @end deftypefn
28 ##
29 ## @seealso{pol2cart, cart2pol, cart2sph}
30 29
31 ## Author: Kai Habel <kai.habel@gmx.de> 30 ## Author: Kai Habel <kai.habel@gmx.de>
32 ## Adapted-by: jwe 31 ## Adapted-by: jwe
33 32
34 function [X, Y, Z] = sph2cart (Theta, Phi, R) 33 function [X, Y, Z] = sph2cart (Theta, Phi, R)