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: Aug. 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 Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1