This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Cut wavelet packet tree


T = wpcutree(T,L)
[T,RN] = wpcutree(T,L)


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

T = wpcutree(T,L) cuts the tree T at level L.

[T,RN] = wpcutree(T,L) returns the same arguments as above and, in addition, the vector RN contains the indices of the reconstructed nodes.


% The current extension mode is zero-padding (see dwtmode).

% Load signal. 
load noisdopp; x = noisdopp;

% Decompose x at depth 3 with db1 wavelet packets
% using Shannon entropy.
wpt = wpdec(x,3,'db1');

% Plot wavelet packet tree wpt. 

% Cut wavelet packet tree at level 2. 
nwpt = wpcutree(wpt,2);

% Plot new wavelet packet tree nwpt. 

See Also


Introduced before R2006a