<div dir="ltr">Hi Katrin,<div>Perhaps you should be using the ft_redefinetrial instead. </div><div><br></div><div>Best,</div><div><br></div><div>Raquel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 10:50 AM, KatrinH Heimann <span dir="ltr"><<a href="mailto:katrinheimann@gmail.com" target="_blank">katrinheimann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Fieldtrippers,<div><br></div><div>I would like to redefine my trials using another event as zero point. So I defined trials on a certain event and preprocessed them. All trials also contain another event. Now I want to redefine them using this other event as zero point and cutting 1 sec before and 1 sec after. </div><div>I tried simply using the definetrial function again:</div><div><br></div><div><p style="margin:0px;font-size:10px;font-family:Courier">cfg = []</p>
<p style="margin:0px;font-size:10px;font-family:Courier">cfg.dataset= strcat(sb,<span style="color:rgb(178,69,243)">'mov_ica_cleaned.mat'</span>)</p>
<p style="margin:0px;font-size:10px;font-family:Courier">cfg.trialdef.eventtype  = <span style="color:rgb(178,69,243)">'trigger'</span>;</p>
<p style="margin:0px;font-size:10px;font-family:Courier">cfg.trialdef.eventvalue = <span style="color:rgb(178,69,243)">'resp'</span></p>
<p style="margin:0px;font-size:10px;font-family:Courier">cfg.trialdef.prestim    = -1</p>
<p style="margin:0px;font-size:10px;font-family:Courier">cfg.trialdef.poststim   = 1</p>
<p style="margin:0px;font-size:10px;font-family:Courier;min-height:12px"> </p>
<p style="margin:0px;font-size:10px;font-family:Courier">mov_data_small = ft_definetrial(cfg)</p>
<p style="margin:0px;font-size:12px;font-family:Courier;min-height:14px"><br></p></div><div><br></div><div>But then I get the error message</div><div><br></div><div><div>Error using ft_read_header (line 1833)</div><div>unsupported header format (matlab)</div><div><br></div><div>Error in ft_trialfun_general (line 71)</div><div>hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</div><div><br></div><div>Error in ft_definetrial (line 169)</div><div>    [trl, event] = feval(cfg.trialfun, cfg);</div><div><br></div><div><br></div><div>Somebody able to help me?</div><div><br></div><div>Thanks and best</div><div>Katrin</div><div> </div><div>>> </div></div></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>