Motorola DSP Developer's Kit | ![]() ![]() |
Difference and approximate derivative.
MATLAB Syntax
Y=mot563_diff(X,N) Y=mot563_diff(X,N,DIM)
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,
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
then mot563_diff(X,1,1) is [-0.3 0.2 -0.3],
mot563_diff(X,1,2) is [0.4 -0.2
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).
See Also
mot563_conv mot563_xcorr
![]() | mot563_decimate | mot563_dspround | ![]() |