<div> </div><div><div><div><div><div><div><div><div>Dear Fildtrippers,</div><div><div><div>    </div><div>My name is Diana, I'm new to Fieldtrip and curently trying to learn how process eeg data</div><div>    </div><div>I have a .raw file, exported from NetStation</div>I'm using Matlab 2014b, and the latest version of fieldtrip<em>.</em><div> </div><div> </div><div>[my definetrial]:</div><div> </div><div><div>events = ft_read_event('01 wordA 27-09.raw')</div><div>FileName = '01 wordA 27-09.raw';</div><div> cfg                         = [];</div><div>  cfg.dataset                 = FileName;</div><div>  cfg.trialdef.eventtype      = 'trigger';</div><div>  cfg.trialdef.eventvalue     = 'tim0'; % здесь то значение, которое нужно</div><div>  cfg.trialdef.prestim        = 0.2; % интервал до стимула</div><div>  cfg.trialdef.poststim       = 0.8; % интервал после стимула</div><div> </div><div>  cfg = ft_definetrial(cfg);</div><div> </div><div><br />after this, I try</div><div> <div>cfg = []</div><div>cfg.dataset = FileName</div><div>cfg.channel = 'EEG'</div><div>cfg.continuous   = 'no'</div><div>raw_data  = ft_preprocessing(cfg)</div><div> </div><div>And get such error:</div><div> </div><div><div>reading and preprocessing</div><div>reading and preprocessing trial 2 from 98</div><div><span style="color:#ff0000;">Index exceeds matrix dimensions.</span></div><div> </div><div><span style="color:#ff0000;">Error in read_sbin_data (line 121)</span></div><div><span style="color:#ff0000;">        eventData(:,1:NSamples)  = temp(</span></div><div><span style="color:#ff0000;">        (NChan+1):(NChan+NEvent), 1:NSamples);</span></div><div> </div><div><span style="color:#ff0000;">Error in ft_read_data (line 737)</span></div><div><span style="color:#ff0000;">      dat = read_sbin_data(filename, hdr, begtrial,</span></div><div><span style="color:#ff0000;">      endtrial, chanindx);</span></div><div> </div><div><span style="color:#ff0000;">Error in ft_preprocessing (line 573)</span></div><div><span style="color:#ff0000;">      dat = ft_read_data(cfg.datafile, 'header', hdr,</span></div><div><span style="color:#ff0000;">      'begsample', begsample, 'endsample', endsample,</span></div><div><span style="color:#ff0000;">      'chanindx', rawindx, 'checkboundary',</span></div><div><span style="color:#ff0000;">      strcmp(cfg.continuous, 'no'), 'dataformat',</span></div><div><span style="color:#ff0000;">      cfg.dataformat);</span></div><div> </div><div><span style="color:#ff0000;">Error in preproc_try (line 3)</span></div><div><span style="color:#ff0000;">raw_data  = ft_preprocessing(cfg)</span></div><div> </div><div><span style="color:#ff0000;">Error in run (line 63)</span></div><div><span style="color:#ff0000;">evalin('caller', [script ';']);</span></div></div></div><div> </div><div>Could you help me to understand how to manage this, please?</div><div> </div></div><div><div><em>E</em>xample file: <a target="_blank" href="https://drive.google.com/open?id=1c5RYxL9Br1Q5LTkedBD_dR4Ns72Vb9J5">https://drive.google.com/open?id=1c5RYxL9Br1Q5LTkedBD_dR4Ns72Vb9J5</a></div><div> </div><em>Thank you for your answers!</em></div><div> </div><div><em>With best wishes, Diana</em></div><div><em>Undergraduate Student</em></div><div><em>Department of Biology of MSU</em></div></div></div></div></div></div></div><div> </div></div></div></div><div> </div>