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!