<div> </div><div>Dear Fildtrippers,</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><div>I'm using Matlab 2014b, and the latest version of fieldtrip.</div><div> </div><div> </div><div>[my definetria]:</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> </div><div>after this, I try</div><div> </div><div>[preprocessing]:</div><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><span style="color:#ff8c00;">reading and preprocessing</span></div><div><span style="color:#ff8c00;">reading and preprocessing trial 2 from 98</span></div><div><span style="color:#ff8c00;">Index exceeds matrix dimensions.</span></div><div> </div><div><span style="color:#ff8c00;">Error in read_sbin_data (line 121)</span></div><div><span style="color:#ff8c00;">        eventData(:,1:NSamples)  = temp(</span></div><div><span style="color:#ff8c00;">        (NChan+1):(NChan+NEvent), 1:NSamples);</span></div><div> </div><div><span style="color:#ff8c00;">Error in ft_read_data (line 737)</span></div><div><span style="color:#ff8c00;">      dat = read_sbin_data(filename, hdr, begtrial,</span></div><div><span style="color:#ff8c00;">      endtrial, chanindx);</span></div><div> </div><div><span style="color:#ff8c00;">Error in ft_preprocessing (line 573)</span></div><div><span style="color:#ff8c00;">      dat = ft_read_data(cfg.datafile, 'header', hdr,</span></div><div><span style="color:#ff8c00;">      'begsample', begsample, 'endsample', endsample,</span></div><div><span style="color:#ff8c00;">      'chanindx', rawindx, 'checkboundary',</span></div><div><span style="color:#ff8c00;">      strcmp(cfg.continuous, 'no'), 'dataformat',</span></div><div><span style="color:#ff8c00;">      cfg.dataformat);</span></div><div> </div><div><span style="color:#ff8c00;">Error in preproc_try (line 3)</span></div><div><span style="color:#ff8c00;">raw_data  = ft_preprocessing(cfg)</span></div><div> </div><div><span style="color:#ff8c00;">Error in run (line 63)</span></div><div><span style="color:#ff8c00;">evalin('caller', [script ';']);</span></div><div> </div><div>Could you help me to understand how to manage this, please?</div><div> </div><div>Example file: <a href="https://drive.google.com/open?id=1c5RYxL9Br1Q5LTkedBD_dR4Ns72Vb9J5">https://drive.google.com/open?id=1c5RYxL9Br1Q5LTkedBD_dR4Ns72Vb9J5</a></div><div> </div><div>Thank you for your answers!</div><div> </div><div> </div><div>With best wishes, Diana</div><div>Undergraduate Student</div><div>Department of Biology of MSU</div><div> </div><div>P.S. Sorry for having this letter sent again, the first attempt failed strangely.</div>