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

    %% 3-D Wavelet Transform Using Specified Decomposition and Reconstruction Filters  
% Specify the decomposition and reconstruction filters as a cell array.   
% Construct 8-by-8-by-8 matrix of integers 1 to 64 and make the data 3-D.
M = magic(8);
X = repmat(M,[1 1 8]);
%%
% Obtain the 3-D discrete wavelet transform down to level 2 using the 
% Daubechies extremal phase wavelet with two vanishing moments. Input the
% decomposition and reconstruction filters as a cell array. Use the 
% periodic extension mode. 
[LoD,HiD,LoR,HiR] = wfilters('db2');
wd2 = wavedec3(X,2,{LoD,HiD,LoR,HiR},'mode','per');