Coherence between source estimation location and behaviour

Hi,

Reviving this topic because I couldn't find any other relevant discussion on this.
I am interested in calculating lagged coherence between speech signal (used as stimulus during the experiment) and source localised MEG data.

I have taken the following steps -

  • Import the stimulus file in matlab
  • extract Hilbert envelope (making sure the sampling frequency and dimensions match with that of the source localised data)
  • Take absolute values of the envelope
  • Import the speech envelope in brainstorm
  • drop speech env in FilesA and source localised data in FilesB (process 2)
  • Connectivity - 1 x N coherence

This operation only seems to work for one participant at a time, rather than the entire group. Any suggestions on how I can make this work for the entire group?

Thanks