필터 지우기
필터 지우기

Conversion to double from timeseries is not possible

조회 수: 22 (최근 30일)
Muhammad Saad
Muhammad Saad 2022년 3월 10일
댓글: Muhammad Saad 2022년 3월 18일
I have a simulink model where I logged a few signals and exported the timeseries data using the 'Data Inspector'. I want to perform some calculations using samples at certain times.
MATLAB shows an error when I try to save the output(While loop) in a row matrix.
Can you help on how I can fix this without trying to convert the logged save format.

채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 10일
편집: Walter Roberson 2022년 3월 10일
getsampleusingtime() retrieves a subset of a timeseries, but is itself a timeseries object. You need to access the Data property of the object .
Note: you might want to consider converting the timeseries to a timetable() object, and using retime()

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by