MATLAB - Stop execution of .m file while Simulink is running

조회 수: 2 (최근 30일)
JOKY JOKE
JOKY JOKE 2011년 12월 13일
Hi,
I am starting a Simulink simulation from an .m file: set_param('model','SimulationCommand', 'start');
As soon as the simulation is finished I want to continue executing commands, that are written in the same .m file underneath the start command. Is there any way, I can stop execuation of the .m file while Simulink is running and then continue automatically, when it is finished?
Thank you

답변 (1개)

Paulo Silva
Paulo Silva 2011년 12월 13일
Use the Simulink sim function instead to start the simulation, that way after the simulation is over the code continues execution.

카테고리

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