Mercurial > hg > octave-lyh
comparison scripts/general/cart2sph.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 cartesian to spherical coordinates. | 22 ## Transform cartesian to spherical 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, sph2cart} | |
27 ## @end deftypefn | 28 ## @end deftypefn |
28 ## | |
29 ## @seealso{pol2cart, cart2pol, sph2cart} | |
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 [Theta, Phi, R] = cart2sph (X, Y, Z) | 33 function [Theta, Phi, R] = cart2sph (X, Y, Z) |