How do I split a time series?
23 次查看(过去 30 天)
显示 更早的评论
My time series contains the data from three different tasks. I would now like to split my time series in order to have a time series for each task. Unfortunately I have no idea where to start.
2 个评论
William Chamberlain
2018-2-25
For anyone else coming here from Google; copying data from a specific period in one timeseries into a new timeseries can be done with the getsampleusingtime function.
回答(1 个)
Peter Kövesdi
2020-1-13
Another option is:
plot(getsamples(timeseries,ind))
where ind is the index of the samples you want.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!