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)');
X — Reconstructed coefficients
Reconstructed coefficients of the wavelet packet, returned as returned as a row vector.