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

    %% MODWPT Using Default Wavelet 
% Obtain the MODWPT of an electrocardiogram (ECG) signal 
% using the default length 18 Fejer-Korovkin (|'fk18'|) wavelet.
load wecg;
wpt = modwpt(wecg);
%%
% |wpt| is a 16-by-2048 matrix containing the sequency-ordered wavelet packet 
% coefficients for the wavelet packet transform nodes. In this case, the 
% nodes are at level 4. Each node corresponds to an approximate passband 
% filtering of $[nf_s/2^5, (n+1)f_s/2^5)$, where _n_ = 0,...,15, and $f_s$
% is the sampling frequency.  Plot the wavelet packet coefficients at 
% node (4,2), which is level 4, node 2. 
plot(wpt(3,:))
title('Node 4 Wavelet Packet Coefficients')