[FieldTrip] ft_selectdata_new, how does it work ??

Stephen Whitmarsh stephen.whitmarsh at gmail.com
Tue Jan 29 17:23:22 CET 2013


Hi Fanny,

Thats a matlab error when it cant find the function
(ft_selectdata_new) since its probably in a private folder. Try
ft_selectdata (it will figure out if you're using it in the old
(key-value pairs) or new (cfg,data) way).

Cheers,
Stephen

On 29 January 2013 16:56, Fanny <fanny.lachat at gmail.com> wrote:
> Dear fieldtrip users,
>
> I am trying to use the function ft_selectdata_new  on my data.
> I have time-frequency data that come from ft_freqanalysis.
>
> I want to average my data over the frequency of interest (10-12Hz).
>
> ----------------------
> Here is my script :
>
> cfg = [ ];
> cfg.parameter  = 'powspctrm';
> cfg.frequency    = [10 12];
> cfg.avgoverfreq  = 'yes';
> cfg.latency   = [-0.7 1];
> cfg.avgovertime = 'no';
>
> avg_10_12 = ft_selectdata_new (cfg,mydata);
> ------
>
> This doesn't work : 'Undefined function 'ft_selectdata_new' for input
> arguments of type 'struct'.
>
> What should I change in my script in order for it to work ?
> (I tried with : ft_selectdata_new (cfg,mydata.powspctrm));
>
> Thank you in advance !
>
> --
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip



More information about the fieldtrip mailing list