MATLAB: Is there a way to make Simulink run automatically when I run a MATLAB m file

runsimulink

I want to know how to make Simulink run automatically when I run a MATLAB m file.

Best Answer

If you want to load simulink while running the m file, you can simply call
simulink
in your code. If you want to open a model, run it etc, try
open_system
load_system
sim
commands in your m file.