how to control a simulink block through mfile?

조회 수: 1 (최근 30일)
Mariam Ahmad Sameh
Mariam Ahmad Sameh 2016년 8월 2일
댓글: Mariam Ahmad Sameh 2016년 8월 3일
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일
To update your simulink model use
set_param(model,'SimulationCommand','Update')

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by