<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Irene,<div><br></div><div>ft_redefinetrial is your friend.</div><div>Check the Mailinglist archive for a conversation from 2013 in which Jörn Horschig explained some pitfalls here.</div><div>The mail should be called "<span class="Apple-style-span" style="font-size: 12px; ">ft_preprocessing high-pass filtering question"</span></div><div><br></div><div>Good luck,</div><div><br></div><div>Julian</div><div><br></div><div><br><div><div>Am 17.02.2016 um 16:32 schrieb Irene Sophia Mayer:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear fieldtrippers, </div>
<div> </div>
<div>I am currently analysing data where I wanna look at different time frames around specific triggers. To do so, I was planning on doing all my preprocessing on continuous data and then afterwards epoching it. </div>
<div> </div>
<div>However, when trying to use the following code on my preprocessed data, I get an error message: </div>
<div> </div>
<div>cfg = [];<br>
cfg.datafile = 'data.mat';<br>
cfg.trialdef.eventtype = 'Stimulus';<br>
cfg.trialdef.eventvalue = trialmarks;<br>
cfg.trialdef.prestim = .1; % baseline<br>
cfg.trialdef.poststim = .5; % post-baseline trial length<br>
cfg = ft_definetrial(cfg);</div>
<div> </div>
<div>
<div>Error using ft_read_header (line 2158)<br>
unsupported header format (matlab)</div>
<div>Error in ft_trialfun_general (line 78)<br>
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</div>
<div>Error in ft_definetrial (line 174)<br>
[trl, event] = feval(cfg.trialfun, cfg);</div>
<div>Error in prepro_03_epoching (line 19)<br>
e_data = ft_definetrial(cfg);</div>
</div>
<div> </div>
<div>The same code works if applied before ft_preprocessing. </div>
<div> </div>
<div>Is there a way to epoch data after preprocessing it?</div>
<div> </div>
<div>Cheers, </div>
<div>Irene</div></div></div>
_______________________________________________<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></body></html>