- Use "State Reader" and "State Writer" block in Simulink Signal Routing library if your version has it.
- 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.
How to create a structure of time series at one time
15 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Fangjun Jiang
on 26 Jul 2020
It can be done but it would be tedious. I would suggest one of these
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!