- 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
14 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Fangjun Jiang
2020-7-26
It can be done but it would be tedious. I would suggest one of these
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!