how to automatically configure the sim parameter
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
wenchao zhang
am 7 Jul. 2023
Kommentiert: wenchao zhang
am 8 Jul. 2023
when i run the following command in command window, matlab version 2019a
sim('untitled','StartTime','0.0','StopTime','20.0','SolverType','Fixed-step','FixedStep','0.5');
the result shows the model simulation parater not changed, any one knows what's the reason, and how to solve it.
0 Kommentare
Akzeptierte Antwort
Nitya Patel
am 7 Jul. 2023
You can use the set_param function to set these parameters before running the sim function. Something like below:
set_param('model_name', 'SolverType','Fixed-step');
sim('model_name');
You can set all the parameters individually and run sim at the end.
Documentation:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!