How to stop .m file from repeating while simulink model is running?

I have a simulink model executes a .m file but while running the model the .m function still running and repeat itself until simulation is stopped. I want to stop the .m file execution when its job is done, while the simulation continues. Thanks in advance,

Answers (1)

I have a .m model executes a .m file
How to convert to Simulink

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 14 Feb 2017

Answered:

on 10 Jan 2022

Community Treasure Hunt

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

Start Hunting!