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

    %% Wavelet Variance Using Specified Wavelet
% Obtain the MODWT of the Southern Oscillation Index data using the 
% Daubechies wavelet with 2 vanishing moments ('db2'). Compute the unbiased
% estimates of the wavelet variance by scale.
%%

% Copyright 2015 The MathWorks, Inc.

load soi
wsoi = modwt(soi,'db2');
wvar = modwtvar(wsoi,'db2')