www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/BestWaveletPacketTreeExample.m

    %% Best Wavelet Packet Tree
% This example shows to obtain the optimal wavelet packet tree based on an
% entropy criterion.
%%
% Load the noisy Doppler signal. Obtain the wavelet packet tree down to
% level 4 with the |'sym4'| wavelet. Use the periodic extension mode.

% Copyright 2015 The MathWorks, Inc.

dwtmode('per');
load noisdopp;
T = wpdec(noisdopp,4,'sym4');
%%
% Obtain the best wavelet packet tree and plot the result.
BstTree = besttree(T);
plot(BstTree)
%%
% Return the DWT extension mode to the default value.
dwtmode('sym');