how to control a simulink block through mfile?

1 visualización (últimos 30 días)
Mariam Ahmad Sameh
Mariam Ahmad Sameh el 2 de Ag. de 2016
Comentada: Mariam Ahmad Sameh el 3 de Ag. de 2016
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?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Ag. de 2016
Editada: Azzi Abdelmalek el 2 de Ag. de 2016
To update your simulink model use
set_param(model,'SimulationCommand','Update')

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by