If the computations done within the loops are nearly uniform in their complexity, then it's expected that the speed of each loop will increase (become faster) as the number of iterations increase.
This is because of my friend Justin. Justin Time.
Recent releases of Matlab use Just-in-time (JIT) compilation in all Matlab code [see Matlab execution engine]. From that page, "The performance benefit of JIT compilation is greatest when MATLAB code is executed additional times and can re-use the compiled code. This happens in common cases such as for-loops or when applications are run additional times in a MATLAB session with at least some of the application’s MATLAB files remaining unmodified between subsequent runs."
Best Answer