Change constant during simulation in Simulink
Ältere Kommentare anzeigen
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.

Antworten (2)
Azzi Abdelmalek
am 2 Dez. 2013
1 Stimme
Look at set_param function
Vincent Nicolazzo
am 6 Mär. 2019
Bearbeitet: Vincent Nicolazzo
am 6 Mär. 2019
0 Stimmen
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.
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!