Main Content

wprcoef

Reconstruct wavelet packet coefficients

Description

X = wprcoef(T) reconstructs coefficients of the node 0 of the wavelet packet tree T.

wprcoef is a one- or two-dimensional wavelet packet analysis function.

X = wprcoef(T,N) reconstructs coefficients of the node N of the wavelet packet tree T.

example

Examples

collapse all

Load and plot a signal.

load noisdopp
plot(noisdopp)
title("Original Signal")

Figure contains an axes object. The axes object with title Original Signal contains an object of type line.

Decompose the original signals at depth 3 with db1 wavelet packets using Shannon entropy. To handle the problem of border distortion, the wpdec function uses zero padding as the extension mode. For more information, see dwtmode.

T = wpdec(noisdopp,3,"db1","shannon");

Plot the wavelet packet tree.

plot(T)

Figure contains 2 axes objects and other objects of type uimenu. Axes object 1 with title Tree Decomposition contains 29 objects of type line, text. Axes object 2 with title data for node: 0 or (0,0). contains an object of type line.

Reconstruct the packet at node (2,1).

X = wprcoef(T,[2 1]);

Plot the reconstructed packet.

plot(X)
title("Reconstructed Packet (2,1)")

Figure contains an axes object. The axes object with title Reconstructed Packet (2,1) contains an object of type line.

Input Arguments

collapse all

Wavelet packet tree, specified as a wptree object.

Node in the wavelet packet tree T, specified as a nonnegative integer or as a pair of nonnegative integers.

Output Arguments

collapse all

Reconstructed coefficients of the wavelet packet, returned as a row vector.

Version History

Introduced before R2006a