wprcoef
Purpose
Reconstruct wavelet packet coefficients
Syntax
Description
wprcoef is a one- or two-dimensional wavelet packet analysis function.
X = wprcoef(T,N) computes reconstructed coefficients of the node N of the wavelet packet tree T.
X = wprcoef(T) is equivalent to X = wprcoef(T,0).
Examples
% The current extension mode is zero-padding (see dwtmode).
% 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 = wpdec(x,3,'db1','shannon');
% Plot wavelet packet tree.
plot(t)

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

See Also
wpdec,
wpdec2,
wprec,
wprec2
| | Provide feedback about this page |
 | wpjoin | | wprec |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit