Extracting a column of data from a time series
149 次查看(过去 30 天)
显示 更早的评论
Does anybody have any ideas as to how to split up the time and variable1 columns of a time series so that the variable1 data can be handled independently of the time?
I have created the two time series so that I could use the resample function to make sure the data in time series 1 is taken at the same time as the data in time series 2.
If it is not possible to extract just the variable1 column, does anyone know how to interpolate a column of data so that it contains measurements at the same times as another set of data, where the time is not evenly sampled and the data consist of a very high number of measurements?
One final query: does anybody know whether it is possible to find the gradient of a timeseries?
1 个评论
回答(1 个)
Kurt Stewart
2018-6-18
If you made a time series named 'position' for instance you can extract the data by doing: position_vector=position.Data;
3 个评论
Amit Tiwari
2021-3-25
In continuation with Kurt Stewart's answer. If you want the time as a separate column, use
time = position.Time;
另请参阅
类别
在 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!