Extract 1-D detail coefficients.
Syntax
D = detcoef(C,L,N)
D = detcoef(C,L)
Description
detcoef is a one-dimensional wavelet analysis function.
D = detcoef(C,L,N) extracts the detail coefficients at level N from the wavelet decomposition structure [C,L] (see wavedec). Level N must be an integer such that 1 <= N <= length(L)-2.
D = detcoef(C,L) extracts the detail coefficients at last level
n=length(L)-2.
Examples
% Load original one-dimensional signal.
load leleccum;
s = leleccum(1:3920);
ls = length(s);
% Perform decomposition at level 3 of s using db1.
[c,l] = wavedec(s,3,'db1');
% Extract detail coefficients at levels
% 1, 2 and 3, from wavelet decomposition
% structure [c,l].
cd3 = detcoef(c,l,3);
cd2 = detcoef(c,l,2);
cd1 = detcoef(c,l,1);

See Also
appcoef, wavedec
[ Previous | Help Desk | Next ]