[FieldTrip] Epoch using events from a different file

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Wed Sep 25 10:06:57 CEST 2019

If you want to re-epoch data that is already in a fieldtrip structure, you need to use ft_redefinetrial, rather than ft_definetrial. Please see the help documentation of the function, and the website for more information.

Best wishes,

> On 22 Sep 2019, at 15:44, Arti Abhishek <mailtome.2113 at gmail.com> wrote:
> Dear field trip community,
> I am trying to epoch an EEG dataset using events from a different  file (ie, events are not present in the EEG file). I have preprocessed the EEG and event information separately. The EEG data is in the fieldtript format with the following fields;
> hdr 1 x1 struct
> label  64 x 1 cell
> time 1 x 1 cell
> trial 1 x 1 cell
> I want to epoch the data using the event data (also in fieldtrip compatible format) with fields
> type, value, sample, offset, duration.
> I couldn't find out how to do this. How do I  use ft_definetrial in this case? All my attempts haven't worked yet. I could't find any example in the website or in the discussion list. An example would be much appreciated.
> Kind regards,
> Arti 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202

More information about the fieldtrip mailing list