www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/ReturnNodesOfWPTreeExample.m
%% Return Nodes of Wavelet Packet Tree % This example shows how to obtain the depth-position and linear indices % of a wavelet packet tree. %% % Load the noisy Doppler signal and obtain the wavelet packet decomposition % down to the level 4 using the |'db2'| wavelet. % Copyright 2015 The MathWorks, Inc. load noisdopp; T = wpdec(noisdopp,4,'db2'); %% % Obtain the depth-position indices. DepthPosition = allnodes(T,'deppos'); %% % Obtain the corresponding linear indices. LinearIndices = allnodes(T); %% % Display the correspondance in a table. table(DepthPosition,LinearIndices)