Change constant during simulation in Simulink

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.

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 2 日

1 投票

Look at set_param function
Vincent Nicolazzo
Vincent Nicolazzo 2019 年 3 月 6 日
編集済み: Vincent Nicolazzo 2019 年 3 月 6 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2013 年 12 月 2 日

編集済み:

2019 年 3 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by