www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/VarianceEstConfIntUsingMODWTVARExample.m
%% Variance Estimates and Confidence Intervals Using MODWTVAR % Obtain the MODWT of the Nile River minimum level data using the Fejer- % Korovkin wavelet with eight coefficients down to level five. Use % |modwtvar| to obtain and plot the variance estimates and 95% confidence % intervals. %% % Copyright 2015 The MathWorks, Inc. load nileriverminima; wtnile = modwt(nileriverminima,'fk8',5); [wnilevar,wvarci] = modwtvar(wtnile,'fk8'); errlower = (wnilevar-wvarci(:,1)); errupper = (wvarci(:,2)-wnilevar); errorbar(1:5,wnilevar(1:5),errlower(1:5),... errupper(1:5),'ko','markerfacecolor','k') hold on title('Wavelet Variance by Scale of Nile River Levels','fontsize',14); ylabel('Variance'); xlabel('Time (in years)'); ax = gca; ax.XTick = [1:5]; ax.XTickLabel = {'2','4','8','16','32'}; hold off