Conversion to double from timeseries is not possible

16 Ansichten (letzte 30 Tage)
Muhammad Saad
Muhammad Saad am 10 Mär. 2022
Kommentiert: Muhammad Saad am 18 Mär. 2022
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Mär. 2022
Bearbeitet: Walter Roberson am 10 Mär. 2022
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()

Weitere Antworten (0)

Kategorien

Mehr zu Time Series finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by