<div>Mathis, thank you for the advice!</div><div> </div><div>I didn't find out what is the issue with trials in the file (there are some, indeed), maybe it is really some exporting problem. They are not read correctly by the ft_preprocessing, so I decided to discard them.</div><div>I tried reading file as a continuous first, and defining trials later, and it worked properly this way.</div><div> </div><div>With best wishes, Diana.</div><div> </div><div>P.S. Sorry for dublicating the first letter, it looked like an unsend.</div><div><br /></div><div><br /></div><div>-- </div><div>With best wishes, Diana</div><div><br /></div><div><br /></div><div><br /></div><div>27.03.2018, 14:17, "Mathis Kaiser" <mathis.kaiser@charite.de>:</div><blockquote type="cite">
<div text="#000000" bgcolor="#FFFFFF">
Hi Diana,<br />
<br />
is it possible that you already segmented the data in NetStation?
The header indicates 98 trials. I have no experience with EGI files,
but is there an option to export the continuous data? If you want to
define your trials in fieldtrip, this makes more sense.<br />
<br />
Best,<br />
Mathis<br />
<br />
<div>On 24.03.2018 21:25, - Диана wrote:<br />
</div>
<blockquote type="cite" cite="mid:3814791521923101@web25o.yandex.ru">
<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" moz-do-not-send="true">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>
<br />
<fieldset></fieldset>
<br />
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br />
</div>
,<p>_______________________________________________<br />fieldtrip mailing list<br /><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br /><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br /></p></blockquote>