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: Nov. 27, 2018
 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 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1