How can I measure the time taken by the code has written inside the S-Function block in Matlab Simulink?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guys, My Matlab Simulink is too slow. So, to solve this problem, I need to know which part is taken a long time during the execution time. I wrote the code below inside the S-Function block in Matlab Simulink as presented in Figures.
How can I measure the time taken by it comparing with total Matlab Simulink execution time?
Please note that the S-Function block maybe will be applied more than 1000 times, so I can't apply "tic-toc"
thank you in advance
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197439/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197440/image.png)
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!