Cut wavelet packet tree.
Syntax
[T,D] = wpcutree(T,D,L)
[T,D,RN] = wpcutree(T,D,L)
Description
wpcutree is a one- or two-dimensional wavelet packet analysis function.
[T,D] = wpcutree(T,D,L) cuts the tree T at level L and computes the corresponding data structure D (see maketree).
[T,D,RN] = wpcutree(T,D,L) returns the same arguments as above and in addition, the vector RN contains the indices of the reconstructed nodes.
Examples
% Load signal.
load noisdopp; x = noisdopp;
% Decompose x at depth 3 with db1 wavelet packets.
[wpt,wpd] = wpdec(x,3,'db1');
% Plot wavelet packet tree structure wpt.
plottree(wpt)

% Cut wavelet packet tree at level 2.
[nwpt,nwpd] = wpcutree(wpt,wpd,2);
% Plot new wavelet packet tree structure wpt.
plottree(nwpt)

See Also
maketree, wpdec, wpdec2
[ Previous | Help Desk | Next ]