[FieldTrip] Number of epochs in the ft_freqanalysis output
Harris, Elana
Elana.Harris at cchmc.org
Mon Dec 14 13:12:29 CET 2015
cfg.toi = -0:0.05:2; % time window "slides" from -0.5 to 1.5 sec in steps of 0.05 sec (50 ms)
I just noticed this line has an error should be -0.5:0.5:2
Sorry, I am new to fieldtrip myself and can't be more helpful yet.
Cheers,
Elana
________________________________
From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Federica Mauro [federica.ma at gmail.com]
Sent: Monday, December 14, 2015 6:30 AM
To: FieldTrip discussion list
Subject: [FieldTrip] Number of epochs in the ft_freqanalysis output
Dear all,
I'm having a problem in using the ft_freqanalysis function, so I'm writing to ask your help.
I'm trying to get power data for each 2-seconds epochs of my eeg files.
My eeg files are not of the same length (they don't have the same number of epochs), however the output of the function (namely TFRhann.powspctrm) always gives me power data for the same number of epochs, namely 41, unregarding of the effective number of epochs.
Here is the code I'm using:
cfg = [];
cfg.output = 'pow';
% cfg.channel
cfg.method = 'mtmconvol';
cfg.taper = 'hanning';
cfg.foi = 4:1:40; % analysis 2 to 30 Hz in steps of 2 Hz
cfg.t_ftimwin = ones(length(cfg.foi),1).*0.5; % length of time window = 0.5 sec
cfg.toi = -0:0.05:2; % time window "slides" from -0.5 to 1.5 sec in steps of 0.05 sec (50 ms)
TFRhann = ft_freqanalysis(cfg, eeg);
Do you have any suggestion about it?
Thank you very much for your attention.
Worm regards,
Federica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151214/af5436ea/attachment-0002.html>
More information about the fieldtrip
mailing list