[FieldTrip] Question about ft_definetrial
liyy90
liyy90 at 163.com
Wed Aug 26 04:07:34 CEST 2020
Dear List,
When I use the following code to define trials and preprocess my data, I got no trialinfo in my data structure.
I need the trialinfo to extract different condition epochs in the following ERP analysis and I have no idea how to fix it.
Hope anyone can help.
cfg = [];
cfg.dataset = 'raw_data/sample_data.set';
cfg.trialfun = 'ft_trialfun_general';
cfg.trialdef.eventtype = 'trigger';
cfg.trialdef.eventvalue = {'11', '12', '13', '14'};
cfg.trialdef.prestim = 0.2;
cfg.trialdef.poststim = 0.8;
cfg = ft_definetrial(cfg);
data = ft_preprocessing(cfg);
And the result in data structure:
Many thanks.
Yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200826/bc4ae346/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 18872 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200826/bc4ae346/attachment.png>
More information about the fieldtrip
mailing list