Rerun simulation without using the command line
Afficher commentaires plus anciens
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.
Réponses (1)
Fangjun Jiang
le 19 Août 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?
Catégories
En savoir plus sur Simulink Design Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!