jarul (2021). Fibonacci calculation and measuring processing time. (https://www.mathworks.com/matlabcentral/fileexchange/73244-fibonacci-calculation-and-measuring-processing-time), MATLAB Central File Exchange. Retrieved .
This is just a test script, not a function that might be useful to others.
Pre-allocate z for a proper comparison btw
And note that [ 0 1 ; 1 1 ] ^ N
produces the [ (N-1)th Nth ; Ntht (N+1)th ] Fibonacci numbers in a blink of the eye :-)
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!