<div dir="ltr"><div><div><div><div>Hello Federica,<br><br></div>Without seeing your code or the error messages you got, I can't tell why cfg.trl=trl didn't work.<br><br></div>As
for the ft_read_data error, this sounds like the baseline specified
might be longer than what's present in your data. You said your data
were previously processed (and I assume epoched) in EEGLAB; what was the
length of the baseline interval you left? For instance, if you left a
-200ms baseline, that means the first trigger in the dataset is occuring
at 201 ms (assuming 1000 Hz sampling). Then if you define a trl
structure in Fieldtrip with a longer baseline (say, 250 ms) and try to
read the data, fieldtrip will try to read 50 ms of data before the
actual beginning of the file, which would cause this error. if this is
the case, you'll need to either use a shorter baseline interval when you
define trials in Fieldtrip, or you'll need to re-process the data in
EEGLAB and leave a longer baseline interval.<br><br></div>Best,<br></div>Steve<div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div></div>
<div class="gmail_quote"><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Message: 1<br>
Date: Wed, 30 Sep 2015 15:31:56 +0200<br>
From: Federica Mauro <<a href="mailto:federica.ma@gmail.com">federica.ma@gmail.com</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] Artifact rejection<br>
Message-ID:<br>
<CABX-y5AfeiuZKc=njGEXgZnNm58dfEFbo=<a href="mailto:UvsNRV8KEj2Ei-ww@mail.gmail.com">UvsNRV8KEj2Ei-ww@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi everybody,<br>
<br>
I'm trying to use Fieldtrip in order to reject automatically artifacts on<br>
my dataset. I'm working with EEG data previously preprocessed in EEGLAB,<br>
thus their extension is .set.<br>
I'm tryng to follow and adapt the tutorial for MEG data at<br>
<a href="http://www.fieldtriptoolbox.org/tutorial/automatic_artifact_rejection" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/tutorial/automatic_artifact_rejection</a>, but<br>
I found some problems.<br>
<br>
1. It doesn't recognize assignment cfg.trl = trl. For this reason I tried<br>
to use ft_definetrial in order to get the matrix cfg.trl, but it still<br>
gives me problems:<br>
2. Specifically: Error using ==> ft_read_data at 206 - cannot read data<br>
before the begin of the file<br>
<br>
Do you have any suggestion?<br>
<br>
Thank you very much in advance!<br>
Best,<br>
Federica<br></blockquote></div></div></div>