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
Azzi Abdelmalek 2016년 8월 2일
편집: Azzi Abdelmalek 2016년 8월 2일

0 개 추천

To update your simulink model use
set_param(model,'SimulationCommand','Update')

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

태그

질문:

2016년 8월 2일

댓글:

2016년 8월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by