Dear Fieldtrippers,<br /><br />Im new to Fieldtrip and have a question about segmentation. I want to do a freqanalysis on EEG data (Brainvision Recorder).<br />I have one file per condition (so only containing one trigger code, and a start code at the beginning of the file) that i want to segment into 2sec pieces. Ive been trying to find a way to add a trigger with Fieldtrip, so that I can segment around a new trigger. Using a pre- and poststim timewindow around the trigger code is not a solution, as this gives me overlapping segments, which i do not want. <br />This doesnt seem possible?<br /><br />After reading about cfg.trialfun, I saw that i can segment a continuous file into segments that i can define in terms of length (sec/samples). I guess this is the easiest way for me to segment my file. However, i want to be able to define the start and end point of segmentation, as my file contains a part in the beginning without codes (EEG was being recorded, but experiment was running yet). I have been playing around with the commands begsample and endsample, but that didnt change the window of segmentation (meaning it always segments my whole file, giving me 'empty' segments).<br /><br />Does anybody know how to solve this?<br /><br />Thanks for your time,<br /><br />Boukje Habets<br /><br />-- <br signature="separator" /><br />Dr. Boukje Habets<br />Biopsychology & Cognitive Neuroscience (AE14)<br />Faculty of Psychology and Sports Science | Bielefeld University<br />PO-Box 100131 | D-33501 Bielefeld, Germany<br />Phone: (49) 521 - 106 67 533  |  Fax:   (49) 521 - 106 15 67 530<br />Office: UHG T3-250<br />----------------------------------------------------------------