(Not recommended) Wavelet coherence
wcoher
in not recommended. Use wcoherence
instead.
WCOH = wcoher(Sig1,Sig2,Scales,wname)
WCOH = wcoher(...,Name,Value)
[WCOH,WCS]
= wcoher(...)
[WCOH,WCS,CWT_S1,CWT_S2]
= wcoher(...)
[...] = wcoh(...,'plot')
returns
the wavelet coherence for the input signals WCOH
= wcoher(Sig1
,Sig2
,Scales
,wname
)Sig1
and Sig2
using
the wavelet specified in wname
at the scales
in Scales
. The input signals must be realvalued
and equal in length.
returns
the wavelet coherence with additional options specified by one or
more WCOH
= wcoher(...,Name,Value
)Name,Value
pair arguments.
[
returns the wavelet cross spectrum.WCOH
,WCS
]
= wcoher(...)
[
returns the continuous wavelet transforms
of WCOH
,WCS
,CWT_S1
,CWT_S2
]
= wcoher(...)Sig1
and Sig2
.
[...] = wcoh(...,'plot')
displays the modulus
and phase of the wavelet cross spectrum.

A realvalued onedimensional input signal. 

A realvalued onedimensional input signal. 



Wavelet used in the wavelet coherence. 

Scale factor for arrows in quiver plot. Default: 1 

Number of arrows in scale. Together with the number of scales, Default: 20 

Length of smoothing window in scale. Default: 1 

Length of smoothing window in time. Default: 

Type of plot.


Wavelet coherence. 

Wavelet cross spectrum. 

Continuous wavelet transform of signal 1. 

Continuous wavelet transform of signal 2. 
Wavelet coherence of sine waves in noise with delay:
t = linspace(0,1,2048); x = sin(16*pi*t)+0.5*randn(1,2048); y = sin(16*pi*t+pi/4)+0.5*randn(1,2048); wname = 'cgau3'; scales = 1:512; ntw = 21; % smoothing parameter % Display the modulus and phased of the wavelet cross spectrum. wcoher(x,y,scales,wname,'ntw',ntw,'plot');
Sine wave and Doppler signal:
t = linspace(0,1,1024); x = sin(8*pi*t) + 0.4*randn(1,1024); x = x/max(abs(x)); y = wnoise('doppler',10); wname = 'cgau3'; scales = 1:512; ntw = 21; % smoothing parameter % Display of the CWT of the two signals. wcoher(x,y,scales,wname,'ntw',ntw,'plot','cwt'); % Display of the wavelet cross spectrum. wcoher(x,y,scales,wname,'ntw',ntw,'nsw',1,'plot','wcs'); % Display of the modulus and phased of the wavelet cross spectrum. wcoher(x,y,scales,wname,'ntw',ntw,'plot');
Grinsted, A, J.C. Moore, and S. Jevrejeva. "Application of the cross wavelet transform and wavelet coherence to geophysical time series. Nonlinear Processes in Geophysics. 11, 2004, pp. 561566.
Torrence. C., and G. Compo. "A Practical Guide to Wavelet Analysis". Bulletin of the American Meteorological Society, 79, pp. 6178.