Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit | ![]() ![]() |
MATLAB Syntax
Y=mot566_diff(X,N) Y=mot566_diff(X,N,DIM)
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,
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
then mot566_diff(X,1,1) is [-0.3 0.2 -0.3],
mot566_diff(X,1,2) is [0.4 -0.2
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).
See Also
mot566_conv mot566_xcorr
![]() | mot566_decimate | mot566_dspround | ![]() |