<div dir="ltr">Hello Arti, maybe you can try to set your pre stim time to a negative value ( so you will start after the event) , and then set the post stim at your final epoch time.<div><br><div>Like this: </div><div><br></div><div><div> cfg = [];</div><div> cfg.datafile = datafile;</div><div> cfg.headerfile = headerfile;</div><div> cfg.trialdef.eventtype = 'Stimulus';</div><div> cfg.trialdef.eventvalue = 'S 19';</div><div><br></div><div> cfg.trialdef.prestim = -1; % start 1 second AFTER stim</div><div> cfg.trialdef.poststim = 30; % end in the second 30 AFTER stim</div><div> </div><div> td = ft_definetrial(cfg); % my epochs are 29 second long</div></div><div><br></div><div><br></div><div>Hope this helps.</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-15 7:16 GMT+01:00 Arti Abhishek <span dir="ltr"><<a href="mailto:mailtome.2113@gmail.com" target="_blank">mailtome.2113@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Dear fieldtrip community,<br><br></div>I have EEG recorded in an auditory steady state paradigm and I want to epoch between 1-30 seconds. I don't want in my epoch any prestimulus time or the first second of the stimulus (to remove the onset response). I was wondering how I can epoch like this in fieldtrip? Can I epoch without using cfg.trialdef.prestim and cfg.trialdef.poststim parameters?<br><br></div>Thanks,<br></div>Arti<br></div>
<br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>