[FieldTrip] ft_selectdata_new, how does it work ??

Fanny fanny.lachat at gmail.com
Tue Jan 29 17:31:19 CET 2013


Thank you Johanna,

with the use of ft_defaults my script works now !

Cheers


2013/1/29 Johanna Zumer <johanna.zumer at gmail.com>

> Hello,
>
> This sounds like it could be a path issue.   Is ft_selectdata_new in your
> path?  If you type 'which ft_selectdata_new' does it show up?  If not, type
> ft_defaults and then try again.
>
> If still a problem...I'll have to look closer.
>
> Cheers,
> Johanna
>
>
> 2013/1/29 Fanny <fanny.lachat at gmail.com>
>
>> 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 !
>>
>> --
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130129/d2c3d507/attachment-0002.html>


More information about the fieldtrip mailing list