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

    %% 3-D Wavelet Transform  
% Find the 3-D DWT of a volume. 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 at level 1 using the Haar 
% wavelet and the default whole-point symmetric extension mode. 
wd1 = wavedec3(X,1,'db1');