Change constant during simulation in Simulink
Mostrar comentarios más antiguos
I update my constants during simulation in following way: run simulation, stop, change const, run, stop and so on. But how can i do this programmatically? This is the picture what should be result.

Respuestas (2)
Azzi Abdelmalek
el 2 de Dic. de 2013
1 voto
Look at set_param function
Vincent Nicolazzo
el 6 de Mzo. de 2019
Editada: Vincent Nicolazzo
el 6 de Mzo. de 2019
0 votos
Check out this link. It's not the best method but it worked for me. I would run my simullation and change the value of the constant in the command window.
Categorías
Más información sobre Simulink en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!