How to check which function is the slowest one?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to figure out which function in my program (designed to solve non-linear equations) is the 'bottle-neck' of the calculation. Any useful suggestions?
0 commentaires
Réponses (3)
John D'Errico
le 21 Juin 2016
Use the profile tool to identify bottlenecks.
help profile
0 commentaires
Shameer Parmar
le 21 Juin 2016
Simply put..
'tic' and 'toc' commands in each function one by one and check the time..
% starting of function
tic
% your code
% your code
% your code
toc
% end of this function
0 commentaires
Voir également
Catégories
En savoir plus sur Files and Folders 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!