how to automatically configure the sim parameter
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
wenchao zhang
el 7 de Jul. de 2023
Comentada: wenchao zhang
el 8 de Jul. de 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1428658/image.png)
0 comentarios
Respuesta aceptada
Nitya Patel
el 7 de Jul. de 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:
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!