Motorola DSP Developer's Kit
mot566_diff
Motorola DSP Developer's Kit
mot566_diff
Motorola DSP Developer's Kit    
mot566_diff


Difference and approximate derivative.
MATLAB Syntax

Description

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

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

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

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

mot566_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 mot566_diff(X,1,1) is [-0.3 0.2 -0.3],

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

                                          0.9 -0.7],

mot566_diff(X,2,2) is the 2nd order difference along the dimension 2, and mot566_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
mot566_conv                      mot566_xcorr


 mot566_decimate mot566_dspround