Reconstruct wavelet packet coefficients
Reconstruct Wavelet Packet Coefficients
Load and plot original signal. The function uses zero padding as an extension mode for dealing with the problem of border distortion in signal or image analysis. For more information, see
load noisdopp; s = noisdopp; plot(s); title('Original signal');
Decompose the original signals at depth 3 with
db1 wavelet packets using Shannon entropy.
T = wpdec(s,3,'db1','shannon');
Plot the wavelet packet tree.
Reconstruct the packet at node (2,1).
X = wprcoef(T,[2 1]);
Plot the reconstructed packet.
plot(X); title('Reconstructed packet (2,1)');
N — Node in wavelet packet tree
0 (default) | nonnegative integer | 1-by-2 vector
Node in the wavelet packet tree T, specified as a nonnegative integer or as a pair of nonnegative integers.
X — Reconstructed coefficients
Reconstructed coefficients of the wavelet packet, returned as a row vector.
Introduced before R2006a