<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Andrea,<br>
<br>
For a quick work-around the first bullet-point should work out fine, I
don't know why you want to edit cfg.channel though. <br>
However, if you <i>do</i> want to cluster over channels it is
necessary to specify a neighbourhood structure, see
ft_neighbourselection for how to do that. The neighbourhood structure
you create by doing this should be placed in cfg.neighbours. The result
could be the same if you edit the cfg options in the subfunction
clusterstat though, but I haven't used those fields directly.<br>
<br>
Hope this helps,<br>
Kind regards,<br>
Roemer<br>
<br>
<br>
<br>
On 3/4/2010 11:27 AM, Andrea Ostendorf wrote:
<blockquote cite="mid:D8F7C498AA784802BFA07DEF5D83C082@LAT6500Andrea"
 type="cite">
  <pre wrap="">Dear Roemer,

regarding your reply to Chetan's question / observation: Can I ask you
whether what I currently do is correct?
I have got time-frequency data, which I sometimes want to cluster over
channels or not. So I do the following

o) do the modification you recommended to Chetan
      channeighbstructmat = makechanneighbstructmat(cfg);
        issource = 0;
        (commented out the surrounding lines)
o) edit cfg.channel
o) if clustering over channels is desired:
        edit cfg.neighbourdist and cfg.minnbchan
   else (no clustering over channels or if channels are averaged):
        cfg.neighbours = {}

This works and there is a marked difference whether I cluster over channels
or not.
I am just not sure whether it is correct.
Thanks a lot for your help so far!

All the best
Andrea

----------------------------------
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 class="moz-txt-link-freetext" href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a class="moz-txt-link-freetext" href="http://www.ru.nl/neuroimaging/fieldtrip">http://www.ru.nl/neuroimaging/fieldtrip</a>.
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Roemer van der Meij MSc
Scientific Programmer & Data-Analyst
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognition
P.O. Box 9104
6500 HE Nijmegen
The Netherlands
Tel: +31(0)24 3612631
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:r.vandermeij@donders.ru.nl">r.vandermeij@donders.ru.nl</a></pre>
</body>
</html>
<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>