MATLAB: How to run simulink simulation from matlab script

run functionsimulink

hello i need to run simulink simulation from matlab, how to do it using matlab command in script ?

Best Answer

Hi,
You can use sim command line to simulate your model : doc sim.
sim('Model_Name',Simulation_Time) % most basic way to simulate with command script.