Dear fieldtripper,<br><br><pre class="code">'timelockanalysis' <span>works fine when all subjects have exactly the same electrodes.<br><br>When some subjects have 'bad channels' (missing) it doesn't work.
<br>Trying to narrow the channel selection with cfg.channel doesn't seem to work, too. <br>(RAB_U_A is a cell which contains serveral subjects datasets) <br><br>cfg =[];<br>cfg.keepindividual = 'no'<br>cfg.channel={'E101'}
;<br>RUA = timelockgrandaverage(cfg, RAB_U_A{:});</span><br></pre><span><span style="color: rgb(255, 0, 0);">??? Index exceeds matrix dimensions.</span><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">Error in ==> timelockgrandaverage at 125</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">  avgmat(s, :, :) = varargin{s}.avg(:, ResultsTimeSelectCases);
</span><br><br><br>Thanks,<br><br>Harald<br></span><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>