Time consumed by a function in a code
2 次查看(过去 30 天)
显示 更早的评论
I have made an equivalent function of variable fractional delay and running it with a for loop and with the other functions like xcorr in the code. I have to find the time taken by the code in executing the equivalent function only and not the xcorr function. I have used tic toc, but it gives the time for the whole code.
0 个评论
回答(1 个)
KSSV
2020-8-17
Read about profiler. You can use tic toc.
t1 = tic ;
val = myfunction(inputs) ;
t1 = toc(t1) ;
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!