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

    %% Effect of Phase Display Threshold on Wavelet Coherence of Weather Data
% Compare the effects of using different phase display thresholds on the
% wavelet coherence. 
%%
% Plot the wavelet coherence between the El Nino time series and the
% All India Average Rainfall Index. The data are sampled monthly. Specify
% the sampling interval as 1/12 of a year to display the periods in years. 
% Use the default phase display threshold of 0.5, which shows phase arrows 
% only where the coherence is greater than or equal to 0.5.
load ninoairdata;
wcoherence(nino,air,years(1/12));

%%
% Set the phase display threshold to 0.7. The number of phase arrows
% decreases.
wcoherence(nino,air,years(1/12),'PhaseDisplayThreshold',0.7);