<div dir="ltr"><div class="gmail_quote"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">Hi Maité,</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">Thank you for your answer!</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">I have managed to calculate the coherence between two conditions in the sensor space in the way you suggested. However, I haven't managed to calculate the coherence between conditions in the source space (i.e. Appendix 1 in <a href="http://www.fieldtriptoolbox.org/tutorial/coherence">http://www.fieldtriptoolbox.org/tutorial/coherence</a>). ft_sourceanalysis doesn't have channelcmb. I wonder if anyone has any solutions for this?</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">BTW. I didn't get the answer to my question in my email but found it from Fieldtrip archive. However, I have also got some other emails from fieldtrip discussion forum.</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">Best,</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="tahoma, sans-serif">Maria</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hi Maria,
Here it is a possible solution. First, rename channels from one of both conditions: for example, for condition 2, {'ch01cond2', 'ch02cond2', ...}. Then, append the data from both conditions. In ft_freqanalysis introduce all the channels combinations you want: 

cfg.channel    = {'MEG' 'ch01cond2' 'ch02cond2' ...};
cfg.channelcmb = {'ch01' 'ch01cond2'; 'ch02' 'ch02cond2'};
As I understand, you could use the same channelcmb later on in ft_connectivityanalysis.
I hope it helps.
Best wishes,Maité</pre><br><br><div dir="ltr"><div><div><div>Dear FieldTrip experts,<br><br></div>I have just started to use Fieldtrip and would like to estimate coherence between MEG responses measured in two different conditions from the same cortical areas. The example in Appendix 1 is close to what I would like to do:<br><a href="http://www.fieldtriptoolbox.org/tutorial/coherence" target="_blank">http://www.fieldtriptoolbox.or<wbr>g/tutorial/coherence</a><br><br></div>However, in the example, coherence is calculated between the reference signal (EMG) and all MEG channels. Could it be possible to calculate coherence between each MEG channel in one condition and the same MEG channels in the other condition, that is: <br>ch1 in cond1 vs. ch1 in cond2, ch2 in cond1 vs. ch2 in cond2, ... <br><br></div>As far as I understand, the example in Appendix 1 would do this: <br><div><div>ch1 in cond1 vs. all channels in cond2, ch2 in cond ch1 all channels in cond2, ...<br><br></div><div>Best,<br></div><div>Maria<br></div></div></div>
</div><br></div>