MATLAB Answers

Simulink computational load of each subsystem (or block)

10 views (last 30 days)
Renato Quartullo
Renato Quartullo on 19 Apr 2021 at 15:56
Commented: Renato Quartullo on 21 Apr 2021 at 8:41
I have a Simulink model having several subsystems and blocks. I want to refine the computational time of my model, so I want to reduce the computational load of the entire model. To do this, I need to know which is/are the block in which the computational load is high, so I need a sort of run&time as in matlab. The commands tic/toc around sim(model) are not suitable because they only get the total elapsed time. How can I do? (I'm using Matlab 2019b)
Thank you in advance!

Answers (1)

Paul on 19 Apr 2021 at 22:38
Edited: Paul on 20 Apr 2021 at 17:15
Check the doc pages for the the Simulink Profiler, Solver Profiler, and various pages on how to optimize performance, if you haven't alredy.
  1 Comment
Renato Quartullo
Renato Quartullo on 21 Apr 2021 at 8:41
Thank you, I used: set_param(mdl,'Profile','off'); and I solved it

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!