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 Center および File ExchangeTime Series についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by