[FieldTrip] TFR with different trial lengths

Ioanna Zioga i.zioga at qmul.ac.uk
Wed Jun 26 11:12:01 CEST 2019


Hello Fieldtrip community!


I want to do TFR analysis on datasets with trials with different lengths (as I'm analysing the time period from the onset of a stimulus until participant's response, which differs from trial to trial).


These are the parameters:

cfgft                   = [];
cfgft.method    = 'tfr';
cfgft.output      = 'pow';
cfgft.foi              = exp(linspace(log(2),log(45),50));
cfgft.toi              = [];
cfgft.width         = 6;
cfgft.keeptrials  = 'yes';


The result I get from the freqanalysis (powspctrm) is a trial x chan x freq x time matrix, in which the time is the time of the trial with the largest duration. The datapoints of the trials with smaller durations are filled with zeros.


I would prefer to get the powspctrm without the zeros at the end, but maybe I can just exclude them later on from the analysis?

Do you know if Fieldtrip works fine with trials of different durations? And if there is any other more efficient way to analyse trials with different durations?


Any help would be extremely appreciated, thanks so much in advance!


Best wishes,

Ioanna

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190626/1a84dccb/attachment-0001.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list