I am working in wavelet coherence analysis of two variables and I have plotted the wavelet coherence spectrum. But I wanted to find the phase lag and correlation coefficient for different time periods like 2, 2-4, 4-8,8-16, 116-32. Basically I wanted to decompose the wavelet into different time scales. I am using MATLAB for the analysis and I am pretty new in MATLAB coding. Please help me to find a solution.