Home > Objects > @iData > gradient.m

iFit/gradient

PURPOSE ^

g = gradient(a, dim) : computes the gradient (derivative) of iData objects

SYNOPSIS ^

function b = gradient(a, dim)

DESCRIPTION ^

 g = gradient(a, dim) : computes the gradient (derivative) of iData objects

   @iData/gradient function to compute the gradient (derivative) of data sets.
     the returned value is an iData array of the partials for dimension 
     ranks 1,2,3..., that is g=[gy gx gz ...] (remember X is rank 2, Y is 1).
     When the dimension is specified, only that rank partial derivative is returned.
    
 input:  a: object or array (iData)
       dim: dimension/rank of the partial to compute (int)
 output: g: object or cell array (iData)
 ex:     a=iData(peaks);
         g=gradient(a); subplot([ a g(1) g(2) ]);

 Version: Mar. 22, 2017
 See also iData, iData/diff, iData/del2, diff, gradient, iData/jacobian

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1