[FieldTrip] Power Spectra - averaging across samples

Federica Mauro federica.ma at gmail.com
Wed May 27 11:28:27 CEST 2015


Dear all,

I have a question about spectral power computation.
I'm using this code

cfg            = [];
cfg.output     = 'pow';
cfg.method     = 'mtmfft';
cfg.taper      = 'hanning';
cfg.foi        = 5:1:40;
cfg.t_ftimwin  = 5./cfg.foi;
cfg.tapsmofrq  = 5;
cfg.keeptrials = 'yes';
cfg.channel    = {'Fp1' 'Fp2' 'F7' 'F3' 'Fz' 'F4' 'F8' 'T3' 'C3' 'Cz' 'C4'
'T4' 'T5' 'P3' 'Pz' 'P4' 'T6' 'O1' 'O2'};
freqfourier    = ft_freqanalysis(cfg, eeg);

and the power spectrum output is a matrix 138 (samples) X 19 (electrodes) X
36 (frequencies), for each subject.

My question is: is it correct to average the data across the samples
dimension?

Thank you in advance!
Best,
Federica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150527/8220b6a3/attachment-0001.html>


More information about the fieldtrip mailing list