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

    %% Inverse Haar Transform of Noisy Data
% Obtain the Haar and inverse Haar transforms of noisy data. 
 %%
 % Load the noisy data signal
 load noisdopp;
 %%
 % Obtain the Haar transform of the noisy signal.
 [a,d] = haart(noisdopp);
 %%
 % Reconstruct the data by inverting the Haar transform.
 xrec = ihaart(a,d);
 %%
 % Compare the original and reconstructed data by determining the maximum
 % difference between them.  The difference is essentially
 % zero, which indicates a near-perfect reconstruction.
 max(abs(xrec-noisdopp'))