how to control a simulink block through mfile?
조회 수: 1 (최근 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?
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2016년 8월 2일
편집: Azzi Abdelmalek
2016년 8월 2일
To update your simulink model use
set_param(model,'SimulationCommand','Update')
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!