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!