wpcutree
Purpose
Cut wavelet packet tree
Syntax
Description
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.
Examples
% 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.
plot(wpt)

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

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