[FieldTrip] Power Spectra - averaging across samples

Federica Mauro federica.ma at gmail.com
Wed May 27 12:09:43 CEST 2015


ok, great, thanks!

2015-05-27 11:46 GMT+02:00 Pelt, S. van (Stan) <stan.vanpelt at donders.ru.nl>:

>  Dear Fedrica,
>
>
>
> Yes it is. You can get to the same outcome directly by just specifying
> cfg.keeptrials=’no’ (the default), but I assume you want to do some
> single-trial analysis later on.
>
>
>
> Best,
>
> Stan
>
>
>
> *From:* fieldtrip-bounces at science.ru.nl [mailto:
> fieldtrip-bounces at science.ru.nl] *On Behalf Of *Federica Mauro
> *Sent:* woensdag 27 mei 2015 11:28
> *To:* FieldTrip discussion list
> *Subject:* [FieldTrip] Power Spectra - averaging across samples
>
>
>
> 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
>
>
>
> _______________________________________________
> 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/20150527/2e42e895/attachment-0002.html>


More information about the fieldtrip mailing list