Reconstruct wavelet packet coefficients.
Syntax
X = wprcoef(T,D,N)
Description
wprcoef is a one- or two-dimensional wavelet packet analysis function.
X = wprcoef(T,D,N) computes reconstructed coefficients of the node N. T is the tree structure and D the data structure (see maketree).
X = wprcoef(T,D) is equivalent to X = wprcoef(T,D,0).
Examples
% Load signal.
load noisdopp; x = noisdopp;
figure(1); subplot(211);
plot(x); title('Original signal');
% Decompose x at depth 3 with db1 wavelet packets
% using Shannon entropy.
[t,d] = wpdec(x,3,'db1','shannon');
% Plot tree structure.
plottree(t)

% Reconstruct packet (2,1).
rcfs = wprcoef(t,d,[2 1]);
figure(1); subplot(212);
plot(rcfs); title('Reconstructed packet (2,1)');

See Also
maketree, wpdec, wpdec2, wprec, wprec2
[ Previous | Help Desk | Next ]