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?
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 Exchange에서 Time 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