Why does the execution time of the same MATLAB code changes when I run it 2-3 times?
Show older comments
In my application, it is necessary to know the execution time for particular section of the code. I use tic; & toc; inbuilt option to know the execution time of the section of code but when i run the same code with same variables 2 to 3 times, it shows different execution time. why is that? & can anyone explain how to get the exact execution time for a section of code?
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!