[FieldTrip] Defining trials
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Wed Feb 10 08:49:40 CET 2021
Hi Mubeen,
You’d need to write your own ’trialfun’ if you want to achieve what you want. See: https://www.fieldtriptoolbox.org/example/making_your_own_trialfun_for_conditional_trial_definition/
to get started.
Good luck,
Jan-Mathijs
On 10 Feb 2021, at 00:52, mubeen afzal <mubafzal at hotmail.com<mailto:mubafzal at hotmail.com>> wrote:
Hi all,
Following up on this. Could someone help me with this code please.
cfg = ft_define trial
I have event labels on my file 'ep.sw' and 'end' defining segments of interest
<image.png>
How can I create trials around only segments between 'Ep.sw' and 'end'. I dont know where to define the end segment for each trial. In the edf file label its named 'end'.
Regards,
Mubeen
________________________________
From: mubeen afzal
Sent: Sunday, February 7, 2021 1:17 AM
To: fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl> <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>>
Subject: Defining trials
Hi all,
Can I get help with a code to allow my edf files each with a number of segments labelled 'ep.sw' at the start and 'end' at end of segment of interest (ranging between 2-10 seconds).
The stim and response based entries in code is abit confusing for me as a beginner and I would just like to define trials based on start and end markers I have mannually marked on segments of a continuous EEG.
All help will be much appreciated.
Regards,
Mubeen
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210210/c8c0f1cf/attachment.htm>
More information about the fieldtrip
mailing list