how to control a simulink block through mfile?
이전 댓글 표시
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
2016년 8월 2일
편집: Azzi Abdelmalek
2016년 8월 2일
To update your simulink model use
set_param(model,'SimulationCommand','Update')
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!