[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


Hey again,

sorry, it doesn't work with ft_freqdescriptives, then you have to do it 
manually:
squeeze(nanmean(nanmean(nanmean(data.powspctrm, 1), 2), 3))

Best,
Jörn

On 3/21/2012 4:21 PM, "Jörn M. Horschig" wrote:
> Hi Vitoria,
>
> try ft_freqdescriptives
>
> Best,
> Jörn
>
> 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 
>> chan_freq_time)?
>>
>> 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
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>


-- 
Jörn M. Horschig
PhD Student
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
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list