Home > Objects > @iData > cart2sph.m

iFit/cart2sph

PURPOSE ^

s = cart2sph(a,dim) : cartesian to polar/spherical representation of iData objects

SYNOPSIS ^

function s = cart2sph(a, center)

DESCRIPTION ^

 s = cart2sph(a,dim) : cartesian to polar/spherical representation of iData objects

   @iData/cart2sph function to 
     cart2sph(a) Transforms the object axes into spherical coordinates, which
       allow radial integration aferwards.
       The 'center' of the distribution (1st moment) is used as symmetry point 
       for the computation of the radius. All axes are considered to be
       distances.
     cart2sph(a,center) specifies the 'center' of the integration 
       (vector of coordinates) or a single value used as center on all
       axes (for instance 0).

 input:  a:     object or array (iData/array of)
         center:scalar or a vector which length is the object dimensionality 
 output: s: object with cartesian/spherical (iData)
 ex:     c=cart2sph(a);

 Version: Aug. 22, 2017
 See also iData, iData/rotate, iData/sum, iData/trapz, iData/camproj

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1