<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1498225454044_11308">Hi Maria,</div><div id="yui_3_16_0_ym19_1_1498225454044_9571"><br></div><div id="yui_3_16_0_ym19_1_1498225454044_11354">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: <br></div><div id="yui_3_16_0_ym19_1_1498225454044_13590"><br></div><pre id="yui_3_16_0_ym19_1_1498225454044_13593">cfg.channel = {'MEG' 'ch01cond2' 'ch02cond2' ...};<br id="yui_3_16_0_ym19_1_1498225454044_13594">cfg.channelcmb = {'ch01' 'ch01cond2'; 'ch02' 'ch02cond2'};</pre><div id="yui_3_16_0_ym19_1_1498225454044_13482"><br></div><div id="yui_3_16_0_ym19_1_1498225454044_13510">As I understand, you could use the same channelcmb later on in ft_connectivityanalysis.</div><div id="yui_3_16_0_ym19_1_1498225454044_13653"><br></div><div>I hope it helps.</div><div><br></div><div>Best wishes,</div><div>Maité<br></div><pre id="yui_3_16_0_ym19_1_1498225454044_11703"><br></pre><div id="yui_3_16_0_ym19_1_1498225454044_9507">. <br></div><div id="yui_3_16_0_ym19_1_1498225454044_9572"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> El Viernes 23 de junio de 2017 11:43, Maria Hakonen <maria.hakonen@gmail.com> escribió:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv1196278387"><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 rel="nofollow" target="_blank" href="http://www.fieldtriptoolbox.org/tutorial/coherence">http://www.fieldtriptoolbox.org/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>fieldtrip mailing list<br><a ymailto="mailto:fieldtrip@donders.ru.nl" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br><br></div> </div> </div> </div></div></body></html>