What is the best way to downsample a tall timetable? Neither "decimate" nor "retime" seems to work.
5 views (last 30 days)
Show older comments
What is the best way to downsample a tall timetable? Using:
decimate(TT, n);
causes the error "Conversion to logical from tall is not possible." Using:
retime(TT, 'regular', 'mean', 'SamplingRate', n);
causes the error "Invalid parameter name: SamplingRate".
0 Comments
Answers (1)
dpb
on 9 Aug 2018
Edited: dpb
on 9 Aug 2018
The newTimeStep or newTimes input parameters could be used for the purpose; newTimeStep is a fixed time step so that
newTimeStep=TimeStep*N2/N1; where N1,N2 are the existing, old series lengths or the ratio the decimation factor.
Alternatively, newTimes is a vector of times.
To use decimate you would have to retrieve the data from the time series to a double; the doc doesn't indicate it supports tall arrays, though.
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!