[FieldTrip] a function for averaging over freq x time x channel
"Jörn M. Horschig"
jm.horschig at donders.ru.nl
Wed Mar 21 16:32:42 CET 2012
sorry, it doesn't work with ft_freqdescriptives, then you have to do it
squeeze(nanmean(nanmean(nanmean(data.powspctrm, 1), 2), 3))
On 3/21/2012 4:21 PM, "Jörn M. Horschig" wrote:
> Hi Vitoria,
> try ft_freqdescriptives
> On 3/21/2012 4:17 PM, Vitória Magalhães Piai wrote:
>> Hi there,
>> Is there an easy way for averaging over frequency x time x channel if
>> my data is the output of ft_freqanalysis with keeptrials = 'no' (so
>> ft_redefinetrial requires rpt to be present, so that's not an option.
>> ft_selectdata_old is also complaining about the wrong structure for
>> the input data and ft_selectdata_new is outputting exactly the same
>> chan_freq_time as the input (I'm using the most recent FT version at
>> the DCCN).
>> I may be missing some really obvious function, but so far I've been
>> doing it in the hard way by hand.
>> Any suggestions are very much appreciated.
>> Thanks, Vitoria
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
Jörn M. Horschig
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
E-Mail: jm.horschig at donders.ru.nl
Trigon, room 2.30
NL-6525 EN Nijmegen
More information about the fieldtrip