<div dir="ltr"><div dir="ltr">Dear fieldtrip community,</div><div dir="ltr"><br></div><div>I am really stuck on how to use ft_definetrial when the data and events are in seperate MATLAB strctures (both in fieldtrip format). Please see my original question below. Any help would be appreciated.</div><div><br></div><div>Thanks,</div><div>Arti<br></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Sun, Sep 22, 2019 at 11:44 PM Arti Abhishek <<a href="mailto:mailtome.2113@gmail.com">mailtome.2113@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><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>
</blockquote></div></div>