In my previous blog (https://www.alivelearn.net/?p=1426) and in our paper titled “NIRS-based hyperscanning reveals increased interpersonal coherence in superior frontal cortex during cooperation” (full text pdf available ), we have shown how wavelet coherence plot can show more useful information. People often asked, how did you extract the values from the plot?
Here is the code:
[Rsq,period,scale,coi,sig95] = wtc(signal1,signal2,'mcc',0, 'ms',128); period32 = find(period>32); period32 = period32(1); b1 = mean(mean(Rsq(period32:end, marktime(1):marktime(2)))); bi = mean(mean(Rsq(period32:end, marktime(2):marktime(3)))); b2 = mean(mean(Rsq(period32:end, marktime(3):marktime(4))));
To download the “Cross Wavelet and Wavelet Coherence Toolbox”, please enter