[FieldTrip] Problems with ft_resampledata

Jinghua OU jinghua1227 at gmail.com
Sat Jul 19 05:48:36 CEST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140719/9b834ffc/attachment-0001.html>


More information about the fieldtrip mailing list