Motorola DSP Developer's Kit    
mot563_diff

Difference and approximate derivative.

MATLAB Syntax

Description

For a vector X, mot563_diff(X), is [X(2)-X(1) X(3)-X(2)... X(n)-X(n-1)].

For a matrix X, mot563_diff(X), is the matrix of column differences,

   [X(2:n,:) - X(1:n-1,:)].

mot563_diff(X,N) is the N-th order difference along the first non-singleton dimension (denote it by DIM). If N >= size(X,DIM), mot563_diff takes successive differences along the next non-singleton dimension.

mot563_diff(X,N,DIM) is the Nth difference function along dimension DIM. If N >= size(X,DIM), DIFF returns an empty array.

Characteristics

If         X = [0.3 0.7 0.5

           0   0.9 0.2]

then mot563_diff(X,1,1) is [-0.3 0.2 -0.3],

mot563_diff(X,1,2) is [0.4 -0.2

                                          0.9 -0.7],

mot563_diff(X,2,2) is the 2nd order difference along the dimension 2, and mot563_diff(X,3,2) is the empty matrix.

Arguments
X
   Vector (or matrix) with elements normalized in the range [-1,1] (for complex elements, both real and imaginary parts should comply with this limit).

Y
   Resulting derivatives.

See Also
mot563_conv                      mot563_xcorr


 mot563_decimate mot563_dspround