How can I resample a set of data?
6 views (last 30 days)
Show older comments
In matlab 2011a I am able to resample data no problem. I am now trying to join two tables and then resample the set of data in matlab 2016a and get the error:
Undefined function 'resample' for input arguments of type 'double'.
Error in Untitled (line 23) A = resample(A,5,1);
I even copy and paste my code from 2011a and it gets an error in 2016a, but not the 2011a version. What has changed that is resulting in an error?
0 Comments
Answers (1)
Star Strider
on 4 May 2016
The resample function exists for timeseries objects in R2016a.
The demo code:
ts1 = timeseries([1.1; 2.9; 3.7; 4.0; 3.0],1:5,'Name','speed');
res_ts=resample(ts1,[1 1.5 3.5 4.5 4.9]);
0 Comments
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!