<br clear="all"><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hey, </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">just starting using fieldtrip today ... but did not get very far:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I tried to do the example <a href="http://fieldtrip.fcdonders.nl/tutorial/coherence" title="" target="_blank" style="color:rgb(0,136,204);line-height:18px;text-align:justify;font-size:12px;font-family:Calibri,Geneva,Arial,Verdana,sans-serif;text-decoration:none;margin:0px;padding:0px">Analysis of corticomuscular coherence</a> but got the error: </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>>> clear</div><div><br></div><div>matlabroot =</div><div><br></div><div>c:\data_fieldtrip\</div>
<div><br></div><div>evaluating trialfunction 'trialfun_left'</div><div>Warning: adding c:\data_fieldtrip\fieldtrip-20120530\external\ctf toolbox to your</div><div>Matlab path </div><div><br></div><div>readCTFds: Data set error : size of meg4 file(s)</div>
<div><span style="white-space:pre-wrap"> </span> 0 bytes (from dir command)</div><div><span style="white-space:pre-wrap"> </span> 696768000 bytes (from res4 file)</div><div><br></div><div>??? Index exceeds matrix dimensions.</div>
<div><br></div><div>Error in ==> getCTFdata at 280</div><div> if trials(kt)<=meg4Trial(openFile) | trials(kt)>meg4Trial(openFile+1)</div><div><br></div><div>Error in ==> ft_read_data at 479</div><div> dat = getCTFdata(hdr.orig, [begtrial:endtrial], chanindx, 'T', 'double');</div>
<div><br></div><div>Error in ==> read_trigger at 69</div><div>dat = ft_read_data(filename, 'header', hdr, 'dataformat', dataformat, 'begsample',</div><div>begsample, 'endsample', endsample, 'chanindx', chanindx, 'checkboundary', 0);</div>
<div><br></div><div>Error in ==> ft_read_event at 481</div><div> trigger = read_trigger(filename, 'header', hdr, 'begsample', flt_minsample,</div><div> 'endsample', flt_maxsample, 'chanindx', trigchanindx, 'dataformat', dataformat,</div>
<div> 'detectflank', detectflank, 'trigshif</div><div>Error in ==> trialfun_left at 7</div><div>event = ft_read_event(cfg.dataset);</div><div><br></div><div>Error in ==> ft_definetrial at 170</div><div>
trl = feval(cfg.trialfun, cfg);</div><div><br></div><div>Error in ==> ex_corticomuscle at 5</div><div>cfg = ft_definetrial(cfg);</div></div></div>