[FieldTrip] Problem redefining trials with different event as zero point
KatrinH Heimann
katrinheimann at gmail.com
Fri Sep 19 16:50:58 CEST 2014
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
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140919/911d1ce7/attachment-0001.html>
More information about the fieldtrip
mailing list