Help Center
Cut wavelet packet tree
X = wpcutree(T,L)
[X,RN] = wpcutree(T,L)
X = wpcutree(T,L) cuts the wavelet packet tree T at level L and returns the result.
X
T
L
example
[X,RN] = wpcutree(T,L) returns the indices RN of the reconstructed nodes.
RN
collapse all
Load a signal.
load noisdopp
Obtain the wavelet packet tree corresponding to the wavelet packet decomposition of the signal at level 3. Use the db1 wavelet. Plot the tree.
db1
wpt = wpdec(noisdopp,3,"db1"); plot(wpt)
Cut the wavelet packet tree at level 2. Plot the result.
nwpt = wpcutree(wpt,2); plot(nwpt)
wptree
Wavelet packet tree, specified as a wptree object. The tree corresponds to a one- or two-dimensional wavelet packet decomposition.
Wavelet packet tree level, specified as a nonnegative integer.
Wavelet packet tree, returned as a wptree object.
Tree node indices, returned as a vector.
Introduced before R2006a
wpdec | wpdec2
wpdec
wpdec2
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office