<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Marco,<div><br></div><div><br><div><div><blockquote type="cite"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>1) How would I go about if I want to perform an action on one trial-type only?</div><div><br></div></span></blockquote><div><br></div><div>Most FieldTrip functions support the option cfg.trials = X, with X being a vector containing indices to the trials on which the computations need to be done. You can then specify, cfg.trials = find(data.trialinfo(:,1)==a), a being the condition number you are interested in.</div><div><br></div><blockquote type="cite"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>2) And now say that within these condition-specific trials, I want to define smaller events. Would I need to proceed the same way as I did with ft_redefinetrials in the first steps? (That is, does FT consider events and trials to be the same thing?)</div></span></blockquote><div><br></div><div>Hmm, you could of course call ft_redefinetrial again, but in that case you need to manually update your trialinfo field again. If your question pertains to whether you can use information in the trialinfo field to redefine your trials, the answer would be that this is tricky, but possible. A prerequisite of course is that the information needs to be present in trialinfo to begin with. What I sometimes do is create additional columns coding (expressed in samples from the beginning of the respective trials) for potentially relevant other events. You could subsequently use this column of the trialinfo matrix to redefine your trials with ft_redefinetrial, using cfg.begsample and cfg.endsample.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Jan-Mathijs</div><div> </div><br><blockquote type="cite"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>Thank you again,</div><div>Marco</div><div><br></div><div>PS : it would be nice indeed to have a tutorial on how to work with one's own dataformat (or to slightly expand the <a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_import_my_own_dataformat" title="" style="color:rgb(0, 0, 204)" target="_blank">How can I import my own dataformat</a> section in the FAQ)</div> </span> _______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dr. J.M. (Jan-Mathijs) Schoffelen </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: 0031-24-3614793</div></div></span></div></span> </div><br></div></div></body></html>