<div dir="ltr">Dear Fieldtrippers,<div><br></div><div style>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 style>I tried simply using the definetrial function again:</div><div style><br></div><div style><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 style><br></div><div style>But then I get the error message</div><div style><br></div><div style><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 style>Somebody able to help me?</div><div style><br></div><div style>Thanks and best</div><div style>Katrin</div><div> </div><div>>> </div></div></div>