<div dir="ltr"><br><div class="gmail_extra">Hi Peter,<br><br><a href="http://www.fieldtriptoolbox.org/reference/ft_definetrial">http://www.fieldtriptoolbox.org/reference/ft_definetrial</a> describes the format of the trial definition matrix; you can simply create a matrix like this using the times that you would like to choose for your epochs, and then run ft_preprocessing() with this matrix as the input for cfg.trl. (This is basically a combination of methods (1) and (2) that you suggested below.)<br><br></div><div class="gmail_extra">Best,<br></div><div class="gmail_extra">Steve<br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div></div>
<br><div class="gmail_quote">On Mon, Jun 29, 2015 at 2:00 PM,  <span dir="ltr"><<a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Message: 1<br>
Date: Sun, 28 Jun 2015 23:51:19 -0400<br>
From: Peter Lyons <<a href="mailto:plyons@udel.edu">plyons@udel.edu</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] Help Manually Defining Trials<br>
Message-ID:<br>
        <CALq-V2qi104MwTnq26qr4EwKPkZkBMEBzstS5JPRxZKVMrr=<a href="mailto:sw@mail.gmail.com">sw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear All,<br>
<br>
My name is Peter Lyons, and I am a researcher at the University of<br>
Delaware.  Currently, I am conducting resting state EEG research with the<br>
intention of using Fieldtrip to calculate the power of different frequency<br>
bands as well as phase lag index between various sensors.  My dataset is a<br>
continuous recording sampled at 1000 hz for 30 minutes.  I do not have any<br>
events or triggers in my data.<br>
<br>
I would like to manually select the cleanest segments of my data following<br>
artifact rejection, and define them as trials.<br>
<br>
Theoretically, I see three ways to segment my data manually:<br>
<br>
1.  Insert individual triggers throughout my data (at locations determined<br>
via ft_databrowser), and then define trials based on these triggers.<br>
<br>
2.  Define trials based on a beginning and ending sample number.<br>
<br>
3.  Use ft_databrowser to select segments of data as if they were<br>
artifacts, and then define these "artifacts" as trials instead of rejecting<br>
them from the dataset.<br>
<br>
Could anyone advise on how to code one of the above methods?<br>
<br>
Any help is welcome and appreciated!<br>
<br>
Thanks,<br>
Peter<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150628/d926ab81/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150628/d926ab81/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
End of fieldtrip Digest, Vol 55, Issue 26<br>
*****************************************<br>
</blockquote></div><br></div></div>