timeseries data to MATLAB variable

조회 수: 2 (최근 30일)
JOB
JOB 2018년 12월 24일
편집: JOB 2018년 12월 28일
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
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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Time Series Collections에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by