MATLAB: How to run the simulink model for defined time

simulink

one simulink model run for defined time (10 s) and another simulink model run for long time evenif i have denfined the time (10 s). Now i m copying the simulink of 2nd model in simulink workspace of first model. Then run the model, but i see only copied second model is going well, first not. please tell me what could be the reason

Best Answer

The time it takes to run a simulink model depends on the complexity of your model. If you have a small model, even you set the stop time to 100000 s, the simulation will be done in less then 1 s. If your model is complex, with a stop time set to 10 s can run for a long time, maybe hours