MATLAB - Stop execution of .m file while Simulink is running
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!