[FieldTrip] Problems with ft_resampledata

Eelke Spaak eelke.spaak at donders.ru.nl
Mon Jul 21 09:58:30 CEST 2014


Hi Jinghua,

The function 'resample' is part of Mathworks' Signal Processing
Toolbox. Currently, unfortunately, this toolbox is a requirement for
certain FieldTrip functionality, including ft_resampledata.

Best,
Eelke

On 19 July 2014 05:48, Jinghua OU <jinghua1227 at gmail.com> wrote:
> Hello,
>
> I am using ft_resampledata to downsize my data and the code is as follows:
>
> cfg = [];
> cfg.resamplefs = 500;
> cfg.detrend = 'no';
> data_resample = ft_resampledata(cfg, data_AR_bc);
>
> however, some errors occur as follows:
>
> ??? Undefined function or method 'resample' for input arguments of type
> 'double'.
>
> Error in ==> ft_resampledata at 182
>       data.trial{itr} =
> transpose(resample(transpose(data.trial{itr}),fsres,fsorig));
>
> Is there something I'm missing?
> Thank you very much for your help in advacne.
>
> Best,
> Jinghua
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip



More information about the fieldtrip mailing list