File Exchange

image thumbnail

Model Execution Time

version 1.4 (2.85 KB) by Monika Jaskolka
Simulates a Simulink model a number of times and records/plots the execution time.


Updated 08 Jul 2020

View License

Simulates a Simulink model a number of times and records the execution time data. The results are then plotted, along with the min, max, and mean times. The user can specify how many simulations to perform.

Cite As

Monika Jaskolka (2020). Model Execution Time (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)


@Monika Jaskolka: It works great! Thank you for responding so promptly!

@Jake Thornton: The newest version of the script will automatically plot the results. You can also try running executionTime(gcs, 'Plot', true); The optional input parameters are described in the script's header comments.

Hi there, I was wondering how to plot the results after having run the Simulink sim for x amount of simulations. Is this something I type in the command window, or is it something I put in simulink?

Thanks in advance! I am new to Matlab.


Jerki Jokne



Enabled default plotting.


Updated code comments.


Updated code comments.


Made plotting the default.


Made the number of simulations an optional argument, and made plotting optional.

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux