And also, what should the channeighbstructmat look like when doing freq_time clustering? When I do the fix mentioned above, it returns a 2x2 matrix of zeros, which causes problems in findcluster(). I've read over the neighbourselection(), but it doesn't give any clues for freq_time clustering.<br>
<br><div class="gmail_quote">On Thu, Mar 4, 2010 at 7:51 AM, Chetan Sharma <span dir="ltr"><<a href="mailto:chesharm@stanford.edu">chesharm@stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am still running into bugs when doing the freq_time clustering. I am testing for coherence between the hemispheres during a task, and now it runs into problems at clusterstat() at line 175. The command is:<br><br>posclusobs = findcluster(reshape(postailobs,<br>

      [cfg.dim,1]),channeighbstructmat,cfg.minnbchan);<br><br>The problem is that postailobs has size [nfreq*ntime, 1], while the cfg.dim is [nchan nfreq ntime], where nchan=2 in this case. It seems like it wants to reshape it into size [nfreq, ntime, 1]. Is this indeed the case?<br>

<br>And could someone help me out by explaining a bit more about when one would choose for cfg.clusterthreshold the different values, 'nonparametric_common', 'nonparametric_individual', and 'parametric' when testing for coherence in different brain areas? I have read over the documentation and the code but am still somewhat unsure.<br>

<br>Thank you for the help,<br><font color="#888888">-chetan</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 6:13 AM, Andrea Ostendorf <span dir="ltr"><<a href="mailto:aostendorf@besa.de" target="_blank">aostendorf@besa.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Roemer,<br>
<br>
thanks. Yes, this helps.<br>
<div><br>
>I don't know why you want to edit cfg.channel though.<br>
<br>
</div>Sorry, I just meant that I have to specify the channels which I want to send<br>
to ft_freqstatistics.<br>
<div><div></div><div><br>
All the best<br>
Andrea<br>
<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/neuroimaging/fieldtrip" target="_blank">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br>


</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>