redefinetrial() probelm
Nathan Weisz
nathanweisz at MAC.COM
Wed Sep 3 11:20:33 CEST 2008
hi martin,
in that case the best is to add the trl field (under yourdata.cfg.trl)
by hand. 'trl' is a simple matrix containing as many roys as epochs
and 3 columns: the first your event onset, the second the pre-event
period and the third your post event period. everything in sampling
points. read the help info of definetrial.m. if you don't have the
absolute starting points of your events, then it will probably work if
you "fool" fieldtrip by adding some random numer in the first column.
once you have done your redefinetrial, then some sanity check using
e.g. timelockanalysis yould be good just to see if your trl was correct.
good luck,
nathan
On 03.09.2008, at 10:48, Martin Bleichner wrote:
> Hi,
> I am trying to do a 'Permutation tests for time-frequency
> representations:
> Within trial experiments' as described in the tutorial.
>
> However, I run into problems using the command redefinetrial().
> When I apply it to my preprocessed data I get the error message
> ??? Error using ==> redefine trial at 112
> the trial definition is inconsistent with the data.
>
> This might be connected to the warning I get when I am using
> freqanalysis():
> could not locate the trial definition trl in the data structure,
> however in this
> case the analysis runs through without further problems.
>
> I am using data that was preprocessed (re-referencing and epoching)
> in eeglab
> and than imported into fieldtrip using eeglab2fieldtrip(), and my
> data struct
> does not contain the trl field.
>
> What could I do? I could also do my preprocessing and epoching in
> fieldtrip, but
> I could not figure out how to import my micromed (.trc) files into
> fieldtrip, so I
> always took the route via eeglab.
>
> Thanks for you help
>
> Martin
>
> ----------------------------------
> The aim of this list is to facilitate the discussion between users
> of the FieldTrip toolbox, to share experiences and to discuss new
> ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html
> and http://www.ru.nl/fcdonders/fieldtrip.
--------------------------------------------
Attention: New Contact Details
--------------------------------------------
Dr. Nathan Weisz
OBOB-Lab
University of Konstanz
Department of Psychology
P.O. Box D23
78457 Konstanz
Germany
Tel: ++49 - (0)7531 - 88 45 84
Email: nathan.weisz at uni-konstanz.de
Homepage: http://www.uni-konstanz.de/obob
"Nothing shocks me. I'm a scientist." (Indiana Jones)
----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20080903/90231d6c/attachment-0001.html>
More information about the fieldtrip
mailing list