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 comentarios

JOB
JOB el 25 de Dic. de 2018
getdatasamples is helpful, but how can it access full data, if final value of index is not know?
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 el 28 de Dic. de 2018
Editada: JOB el 28 de Dic. de 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.

Iniciar sesión para comentar.

Respuestas (1)

bushra raza
bushra raza el 24 de Dic. de 2018

1 voto

Hi,
convert your timeseries data to timetable.
you need to study "timetable" in Matlab.
Cheers,

1 comentario

JOB
JOB el 28 de Dic. de 2018
Editada: JOB el 28 de Dic. de 2018
Thank you, but converting one form to another was a problem, I solved the issue by changing the output block properties into array.

Iniciar sesión para comentar.

Categorías

Productos

Preguntada:

JOB
el 24 de Dic. de 2018

Editada:

JOB
el 28 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by