File Exchange

image thumbnail

Fibonacci calculation and measuring processing time.

version 1.0.0 (1.4 KB) by jarul
Three different way of calculating fibonacci number and the quickest way.

1 Download

Updated 05 Nov 2019

View License

Fibonacci calculation.

Cite As

jarul (2021). Fibonacci calculation and measuring processing time. (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jos (10584)

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 :-)

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!