how to control a simulink block through mfile?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponses (1)
Azzi Abdelmalek
le 2 Août 2016
Modifié(e) : Azzi Abdelmalek
le 2 Août 2016
To update your simulink model use
set_param(model,'SimulationCommand','Update')
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!