[FieldTrip] Problem redefining trials with different event as zero point

Raquel Bibi bibi.raquel at gmail.com
Fri Sep 19 23:31:12 CEST 2014


Hi Katrin,
Perhaps you should be using the ft_redefinetrial instead.

Best,

Raquel

On Fri, Sep 19, 2014 at 10:50 AM, KatrinH Heimann <katrinheimann at gmail.com>
wrote:

> Dear Fieldtrippers,
>
> 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.
> I tried simply using the definetrial function again:
>
> cfg = []
>
> cfg.dataset= strcat(sb,'mov_ica_cleaned.mat')
>
> cfg.trialdef.eventtype  = 'trigger';
>
> cfg.trialdef.eventvalue = 'resp'
>
> cfg.trialdef.prestim    = -1
>
> cfg.trialdef.poststim   = 1
>
>
>
> mov_data_small = ft_definetrial(cfg)
>
>
>
> But then I get the error message
>
> Error using ft_read_header (line 1833)
> unsupported header format (matlab)
>
> Error in ft_trialfun_general (line 71)
> hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
>
> Error in ft_definetrial (line 169)
>     [trl, event] = feval(cfg.trialfun, cfg);
>
>
> Somebody able to help me?
>
> Thanks and best
> Katrin
>
> >>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140919/062ebeb4/attachment.html>


More information about the fieldtrip mailing list