how to control a simulink block through mfile?

1 回表示 (過去 30 日間)
Mariam Ahmad Sameh
Mariam Ahmad Sameh 2016 年 8 月 2 日
Hi I have mfile that includes a while loop.I need for every iteration to change the value of a gain block in simulink model, run the simulink model, and call back another value from the simulink to the mfile. Is it possible?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 2 日
編集済み: Azzi Abdelmalek 2016 年 8 月 2 日
To update your simulink model use
set_param(model,'SimulationCommand','Update')
  1 件のコメント
Mariam Ahmad Sameh
Mariam Ahmad Sameh 2016 年 8 月 3 日
thank you jazak Allah khayran

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by