I understand that you want to calculate the average wavelet coherence (AWC) and Percent area of significant coherence (PASC) in MATLAB. You can follow the steps below:
Plot cross-wavelet power averages and wavelet coherence averages across time of two time seriesAngi RoeschHarald Schmidbauer