I simply run your code using the appropriate package
the package and results are in the zip attached
# Cross wavelet and wavelet coherence toolbox for MATLAB
*Aslak Grinsted, John Moore and Svetlana Jevrejeva*
[Website of the toolbox](http://grinsted.github.io/wavelet-coherence/)
Grinsted, A., J. C. Moore, S. Jevrejeva (2004), Application of the cross wavelet transform and wavelet coherence to geophysical time series, Nonlin. Process. Geophys., 11, 561566 [link](http://www.glaciology.net/Home/PDFs/Announcements/Application-of-the-cross-wavelet-transform-and-wavelet-coherence-to-geophysical-time-series-)
Most of the routines included are MIT licensed. But please read details in individual files, as it includes some codes that are not authored
We would like to thank the following people for letting us include their programs in our package. See the licensing details in the individual files.
* Torrence and Compo for CWT software.
* Eric Breitenberger for AR1NV