how to control a simulink block through mfile?
Mostra commenti meno recenti
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?
Risposte (1)
Azzi Abdelmalek
il 2 Ago 2016
Modificato: Azzi Abdelmalek
il 2 Ago 2016
To update your simulink model use
set_param(model,'SimulationCommand','Update')
1 Commento
Mariam Ahmad Sameh
il 3 Ago 2016
Categorie
Scopri di più su Modeling in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!