What is the best way to downsample a tall timetable? Neither "decimate" nor "retime" seems to work.

4 次查看(过去 30 天)
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".

回答(1 个)

dpb
dpb 2018-8-9
编辑:dpb 2018-8-9
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.

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by