Dear all,<div><br></div><div>I have a problem using freqstatistics to calculate significance for coherence.</div><div><br></div><div>Specifically I have a subject and I am performing a within-trials experiment using 'indepsamplesZcoh' as statistic.</div>
<div><br></div><div>I calculate the TFR of my data with the cfg.output='powandcsd' and cfg.keeptrials='yes' parameters. Then I call freqstatistics to compare my different experimental conditions (baseline vs activation).</div>
<div><br></div><div>The function crashes with this output:   </div><div><br></div><div><div>??? Reference to non-existent field 'label'.</div><div><br></div><div>Error in ==> statfun_indepsamplesZcoh at 76</div>
<div>  nchan = length(cfg.label);</div><div><br></div><div>I have tried to add this field to the cfg struct assigning the cell that contains the interested channels. However this time I have another error:</div></div><div>
<br></div><div>??? Error using ==> reshape</div><div>To RESHAPE the number of elements must not change.</div><div><br></div><div>Error in ==> clusterstat at 178</div><div>      posclusobs = findcluster(reshape(postailobs, [cfg.dim,1]),channeighbstructmat,cfg.minnbchan);</div>
<div>   </div><div><br></div><div>Any suggestions?</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Matteo Demuru</div><div> </div>
<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>