How to check which function is the slowest one?
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (3 件)
Shameer Parmar
2016 年 6 月 21 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!