www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/DenoisingBlocksSignalWithHaarWaveletExample.m
%% Denoising Blocks Signal with Haar Wavelet % Load the noisy blocks signal, |nblocr1.mat|. The signal consists of a % piecewise constant signal in additive white Gaussian noise. The variance % of the additive noise differs in three disjoint intervals. load nblocr1; %% % Apply interval-dependent denoising down to level 4 using the Haar wavelet. % |cmddenoise automatically determines the optimal number and locations of % the variance change points. Plot the denoised and original signal for % comparison. sigden = cmddenoise(nblocr1,'db1',4); plot(nblocr1); hold on; plot(sigden,'r','linewidth',2); axis tight;