A matlab toolbox for cross-wavelet and wavelet coherence analysis

This project is maintained by grinsted

This is a toolbox for matlab for making continuous wavelet, cross-wavelet, and wavelet coherence analysis.

Download the zip file of the toolbox. Unzip it and place the files (including sub-folders) somewhere sensible.

Before you can use the toolbox you need to add the toolbox path to the matlab path. The matlab path is a list of all folders where matlab should look for functions.

Letâ€™s say you unpacked the toolbox to this folder: `/path_to/wavelet-coherence/`

Then you can add `addpath('/path_to/wavelet-coherence')`

at the top of any file using the toolbox. For example:

```
addpath('~/matlab/toolboxes/wavelet-coherence')
wt(randn(100,1))
```

In this way you can add to the path on a project basis. You can also add it permanently to your path if that is more convenient. You can use matlabs `pathtool`

for that.

It would be awesome if you would contribute to the project. Some ways you could help:

- Adding a nice & simple demo script.
- Separate the visualization code to a separate plotwavelet function.
- Auto update phase arrows when plot is resized.
- Let wt,wtc,xwt return structures so that a visualization function has all necessary info

- What does a peak in XWT mean?
- How do I convert a phase-angle to a time lag?
- How important is the AR1 coefficient for WTC significance levels?
- How do I know whether AR1 noise is an appropriate null hypothesis to test against?
- How do I determine if a point is inside the COI or not?
- When is the probability distribution of the data important?
- Why is something missing from my figures on screen or when I try to save them?
- How do I calculate the average phase angle?
- How do I avoid the slow Monte Carlo significance test in wtc?
- How should the phase arrows be interpreted?
- How do I change the Y-axis to frequency instead of period?