Rerun simulation without using the command line
Show older comments
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.
Answers (1)
Fangjun Jiang
on 19 Aug 2011
0 votes
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?
Categories
Find more on Simulink Design Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!