timeseries data to MATLAB variable

12 Ansichten (letzte 30 Tage)
JOB
JOB am 24 Dez. 2018
Bearbeitet: JOB am 28 Dez. 2018
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 Kommentare
Walter Roberson
Walter Roberson am 25 Dez. 2018
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 am 28 Dez. 2018
Bearbeitet: JOB am 28 Dez. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Time Series Collections finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by