How to view scope data after multiple simulations restored from simstate objects?

1 回表示 (過去 30 日間)
Fred
Fred 2017 年 4 月 27 日
So I created a Matlab script calling "simstate = sim(model,...,'InitialState', simstate)" a few times in a loop so that the simulation is basically stopped, I'm changing input values and then the simulation is restored from the last simstate. I am able to extract information from simstate.loggedStates everytime and look a the data after the script has finished and results are as expected. Now if I try to look at scope data interactively (in the Simulink window where 'model' is opened), only the signals from the last time the simulation was run are plotted. Why can't I see the signal data from all the simulation runs before that?

回答 (0 件)

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by