timeseries data to MATLAB variable

14 次查看(过去 30 天)
JOB
JOB 2018-12-24
编辑: JOB 2018-12-28
The Simulink model generates a timeseries data that is saved in workspace, how to save a specific column of this to an array in MATLAB?
  4 个评论
Walter Roberson
Walter Roberson 2018-12-25
Suppose ts is a timeseries, then ts.Data is the full data of the timeseries antd ts.Time is the time values. You can, for example,
ts.Data(:,5000:end,:)
JOB
JOB 2018-12-28
编辑:JOB 2018-12-28
Thank you, but ts.Data is not working in time series, though useful in structures. I solved the issue by changing the output block properties into array.

请先登录,再进行评论。

回答(1 个)

bushra raza
bushra raza 2018-12-24
Hi,
convert your timeseries data to timetable.
you need to study "timetable" in Matlab.
Cheers,
  1 个评论
JOB
JOB 2018-12-28
编辑:JOB 2018-12-28
Thank you, but converting one form to another was a problem, I solved the issue by changing the output block properties into array.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by