<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">Dear Kelly,</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">it sounds like you want to write your own custom trialfun based on the triggers in your data. See here for a tutorial on how to get started with this:</div><div id="bloop_customfont" style="margin: 0px;"><a href="http://www.fieldtriptoolbox.org/example/making_your_own_trialfun_for_conditional_trial_definition">http://www.fieldtriptoolbox.org/example/making_your_own_trialfun_for_conditional_trial_definition</a></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Good luck,</div></div> <br> <div id="bloop_sign_1455538905547585024" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><div>— </div><div><span style="font-family: 'helvetica Neue', helvetica;">Anne E. Urai, MSc</span></div><div><span style="font-family: 'helvetica Neue', helvetica;">PhD student | Institut für Neurophysiologie und Pathophysiologie </span></div><div><span style="font-family: 'helvetica Neue', helvetica;">Universitätsklinikum Hamburg-Eppendorf | </span><span style="font-family: 'helvetica Neue', helvetica;">Martinistrasse 52, 20246 | Hamburg, Germany </span></div><div><span style="font-family: 'helvetica Neue', helvetica;"><a href="http://www.anneurai.net">www.anneurai.net</a> / </span><a href="https://twitter.com/AnneEUrai"><span style="font-family: 'helvetica Neue', helvetica;">@AnneEUrai</span></a></div></div></div> <div class="airmail_ext_on" style="color:black"><br>From: <span style="color:black">Murphy, Kelly (Research Student)</span> <a href="mailto:murphyk5@aston.ac.uk"><murphyk5@aston.ac.uk></a><br>Reply: <span style="color:black">FieldTrip discussion list</span> <a href="mailto:fieldtrip@science.ru.nl"><fieldtrip@science.ru.nl></a><br>Date: <span style="color:black">12 February 2016 at 20:51:50</span><br>To: <span style="color:black">fieldtrip@science.ru.nl</span> <a href="mailto:fieldtrip@science.ru.nl"><fieldtrip@science.ru.nl></a><br>Subject: <span style="color:black"> [FieldTrip] Custom timing files <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div lang="EN-GB" link="blue" vlink="purple" xml:lang="EN-GB"><div></div><div>






<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<title></title>


<div class="WordSection1">
<p class="MsoNormal">Hello Fieldtrippers</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am trying to epoch my Neuromag MEG using
timestamps with ft_definetrial. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">For all my trials I have a 600x2 matrix
(‘trl’) containing start and stop times (each epoch = 1000ms); and
a corresponding <600x5 char> array with condition labels
(‘labels’).  I can combine ‘labels’ and ‘trl’ into a structure
but I am confused as to what functions to proceed with in order to
segment my data.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any help would be greatly appreciated (I hope
this problem is relatively simple)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Many thanks</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Kelly</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">PhD
Student</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Cognitive
& Affective Neurosciences RG</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Aston
Brain Centre</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Aston
University</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Birmingham</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">United
Kingdom</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">B4
7ET</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Office
no: ++44 1212044250</span></p>
<p class="MsoNormal"> </p>
</div>


_______________________________________________
<br>fieldtrip mailing list
<br>fieldtrip@donders.ru.nl
<br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div></div></span></blockquote></body></html>