<div dir="ltr">Dear field trip community,<div><br></div><div>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;</div><div><br></div><div>hdr 1 x1 struct</div><div>label  64 x 1 cell</div><div>time 1 x 1 cell</div><div>trial 1 x 1 cell</div><div><br></div><div>I want to epoch the data using the event data (also in fieldtrip compatible format) with fields</div><div><br></div><div>type, value, sample, offset, duration.</div><div><br></div><div>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.</div><div><br></div><div>Kind regards,</div><div>Arti </div></div>