How to create a structure of time series at one time

14 visualizaciones (últimos 30 días)
Aritra Sasmal
Aritra Sasmal el 26 de Jul. de 2020
Respondida: Fangjun Jiang el 26 de Jul. de 2020
When I log my signal from simulink I get a structure of time series that has the same structure as the bus I am logging. Note the bus contains many sub-buses and consequently the structure contains other structures that contains time series. I am trying to take a snapshot of the entire structure of time series (the logsout{1}.Values structure) so that I can initialize a memory block in a diferent simulation with this structure. How can I convert the structure of time series to a structure of numerical values corresponding to the last time data point?

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 26 de Jul. de 2020
It can be done but it would be tedious. I would suggest one of these
  1. Use "State Reader" and "State Writer" block in Simulink Signal Routing library if your version has it.
  2. Utilize the "Initial State" and "States" in Configuration Parameters, Data Import/Export. Basically, log the "States" of one simulation and use it to set the "Initial State" of another simulation.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by