how to control a simulink block through mfile?

2 次查看(过去 30 天)
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')

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by