timeseries data to MATLAB variable

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 件のコメント

JOB
JOB 2018 年 12 月 25 日
getdatasamples is helpful, but how can it access full data, if final value of index is not know?
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 日

1 投票

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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeTime Series Collections についてさらに検索

製品

質問済み:

JOB
2018 年 12 月 24 日

編集済み:

JOB
2018 年 12 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by