[FieldTrip] Single trial baseline correction in ft_preprocessing
Duru Gun Ozkan
durugun.ozkan at uniroma1.it
Tue Sep 17 19:27:10 CEST 2019
I have a question regarding specifying a different baseline correction time
for each trial in ft_preprocessing.
I had 360 audio stimuli all of which had different lengths. My trigger is
located at the end of each stimuli, and I would like to place the baseline
correction between 200 ms before stimulus start and stimulus start.
I have a matrix for cfg.baselinewindow called BaselineWindow such as this:
-1.20845 -1.008448 ...
I tried to create a loop:
for trial_index = 1:360
cfg = ;
cfg.demean = 'yes';
cfg.baselinewindow = [BaselineWindow(trial_index,1)
data_baselined_end_E = ft_preprocessing(cfg, data_end_E);
This didn't work because it kept running the preprocessing with all the
baselines with all trials, instead of keeping to its specific trial.
My question is, is there another way to specify individual baselines for
individual trials? Or can anyone suggest to improve this loop to have the
data preprocessed with its specific baseline windows?
Thank you in advance.
*Duru G**ü**n **Ö**zkan*
*Ph.D. student in Cognitive Social and Affective Neuroscience.*
*Department of Psychology.University of Rome "La Sapienza".Via dei Marsi 78
- 00185 - Roma.*
*e-mail: durugun.ozkan at uniroma1.it <vanessa.era at uniroma1.it>*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fieldtrip