Dear fellow Fieldtrippers,<div><br></div><div>I was having a small problem regarding baseline correction in FT.</div><div><br></div><div>My situation is rather simple : I have two types of trials, trials A and trials B. Triggers A are always preceding triggers B, but the delay between the two is NOT fixed.</div>
<div><br></div><div>I use triggers B to define my trials (for instance -0.5s to +0.5s). Very straightforward.</div><div><br></div><div>However, I would like to use triggers A to define my baseline window. Say I would like to use the one second preceding each trigger A as the baseline for the following trial.</div>
<div><br></div><div>Until now the way I was going about it was rather tedious :</div><div>a) ft_preprocessing data as one big, long trial (filtering)</div><div>b) ft_definetrial to define long trials as starting from trigger A (origin) to following trigger B (end)</div>
<div>*c) ft_preprocessing to baseline correct*</div><div>d) ft_redefinetrial with variable cfg.offset to set origin back to trigger B</div><div>e) ft_redefinetrial to take only window [ -0.5s ; +0.5s]</div><div><br></div>
<div>But I'm wondering whether that's not an overkill (especially since the delay between triggers A and B can be quite long and make the preprocessing really slow on my old machine).</div><div><br></div><div>Any advice is appreciated,</div>
<div><br></div><div>Best regards,</div><div>Marco</div>