[FieldTrip] Epoching/trialdefinition

Julian Keil julian.keil at gmail.com
Wed Feb 17 17:07:26 CET 2016


Dear Irene,

ft_redefinetrial is your friend.
Check the Mailinglist archive for a conversation from 2013 in which Jörn Horschig explained some pitfalls here.
The mail should be called "ft_preprocessing high-pass filtering question"

Good luck,

Julian


Am 17.02.2016 um 16:32 schrieb Irene Sophia Mayer:

> Dear fieldtrippers,
> 
> I am currently analysing data where I wanna look at different time frames around specific triggers. To do so, I was planning on doing all my preprocessing on continuous data and then afterwards epoching it.
> 
> However, when trying to use the following code on my preprocessed data, I get an error message:
> 
> cfg = [];
> cfg.datafile = 'data.mat';
> cfg.trialdef.eventtype = 'Stimulus';
> cfg.trialdef.eventvalue = trialmarks;
> cfg.trialdef.prestim = .1;  % baseline
> cfg.trialdef.poststim = .5; % post-baseline trial length
> cfg = ft_definetrial(cfg);
> 
> Error using ft_read_header (line 2158)
> unsupported header format (matlab)
> Error in ft_trialfun_general (line 78)
> hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
> Error in ft_definetrial (line 174)
>     [trl, event] = feval(cfg.trialfun, cfg);
> Error in prepro_03_epoching (line 19)
> e_data = ft_definetrial(cfg);
> 
> The same code works if applied before ft_preprocessing.
> 
> Is there a way to epoch data after preprocessing it?
> 
> Cheers,
> Irene
> _______________________________________________
> 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/20160217/f94cdc4e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160217/f94cdc4e/attachment-0002.sig>


More information about the fieldtrip mailing list