Rerun simulation without using the command line
古いコメントを表示
We're trying to automate running a simulation for hundreds of different input data sets. We have autommated seleting the input file and the results file but we're trying to find a way to to re-run the model while the model is open without physically clicking the "Play" button. We can do this now in a script but that slows down the process since it physically reloads the model for each run which for our large model is not fast.
回答 (1 件)
Fangjun Jiang
2011 年 8 月 19 日
0 投票
Why do you have to re-load the model for every simulation run? You can load it once at the begining using open_system() or load_systme(). Then in your for-loop, use sim() to run the simulation but not to run close_system(), right?
カテゴリ
ヘルプ センター および File Exchange で Simulink Design Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!