timeseries data to MATLAB variable

4 vues (au cours des 30 derniers jours)
JOB
JOB le 24 Déc 2018
Modifié(e) : JOB le 28 Déc 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 commentaires
Walter Roberson
Walter Roberson le 25 Déc 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 le 28 Déc 2018
Modifié(e) : JOB le 28 Déc 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.

Connectez-vous pour commenter.

Réponses (1)

bushra raza
bushra raza le 24 Déc 2018
Hi,
convert your timeseries data to timetable.
you need to study "timetable" in Matlab.
Cheers,
  1 commentaire
JOB
JOB le 28 Déc 2018
Modifié(e) : JOB le 28 Déc 2018
Thank you, but converting one form to another was a problem, I solved the issue by changing the output block properties into array.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Time Series Collections dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by