[FieldTrip] Wrong functionality/ misunderstanding with cfg.frequency field in ft_freqstatistics
Lam, Nietzsche
n.lam at fcdonders.ru.nl
Wed Mar 19 12:52:54 CET 2014
Hi Jim,
Without seeing all the code you used it's hard to determine where exactly the problem is.
NEvertheless, two things come to mind:
(1) you need to specify the frequency of interest with "cfg.foi = 1:10".
To be precise, it is also good to specify the numbers of steps you wish to calculate e.g., 1:1:10.
please see here: http://fieldtrip.fcdonders.nl/tutorial/timefrequencyanalysis
Alternatively, prior to calling ft_freqanalysis, you can use the function ft_selectdata(cfg,freqdata) to select the frequency band of interest.
Hope this gets you started!
Best,
Nietzsche
----- Original Message -----
> From: "Jim Parkinson" <jimparkinson at me.com>
> To: fieldtrip at science.ru.nl
> Sent: Wednesday, 19 March, 2014 12:40:46 PM
> Subject: [FieldTrip] Wrong functionality/ misunderstanding with cfg.frequency field in ft_freqstatistics
> Hi.
>
>
> i have some TFR data which has been analysed over 1 : .5 : 30 Hz using
> ft_freqanalysis (MTMCONVOL), 11 subjects, 2 conditions
>
>
> Right now I'd like to compare the two conditions using
> ft_freqstatistics but restrain the statistics to the freq range 1:10.
> so I've set
>
>
> cfg.frequency = [1 10]
>
>
> But, by the time the stats are running, the analysis is over the full
> range produced by ft_freqanalysis (1:30 Hz), and the output stats
> reflects this. Somewhere in ft_freqstatistics the cfg.frequency
> setting seems to be overridden. Is this a bug, am i doing something
> wrong, or have I misunderstood what cfg,frequency is supposed to be
> doing?
>
>
> thanks for any help!
>
>
> --
>
>
>
> Dr Jim Parkinson, D.Phil
>
> j.m.parkinson at sussex.ac.uk
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
--
Nietzsche H.L. Lam, MSc
PhD Candidate
Max Planck Institute for Psycholinguistics
Wundtlaan 1, 6525 XD Nijmegen, The Netherlands
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging,
Kapittelweg 29, 6525EN Nijmegen, The Netherlands
n.lam at fcdonders.ru.nl
+31-24-3668219
neurobiologyoflanguage.com
More information about the fieldtrip
mailing list