<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I am using ft_resampledata to downsize my data and the code is as follows:<br><br>cfg = [];<br>cfg.resamplefs = 500;<br>cfg.detrend = 'no';<br>data_resample = ft_resampledata(cfg, data_AR_bc);<br>
<br></div>however, some errors occur as follows:<br><br>??? Undefined function or method 'resample' for input arguments of type 'double'.<br><br>Error in ==> ft_resampledata at 182<br> data.trial{itr} = transpose(resample(transpose(data.trial{itr}),fsres,fsorig));<br>
<br></div>Is there something I'm missing?<br></div>Thank you very much for your help in advacne.<br><br></div>Best,<br></div>Jinghua<br></div>