9 Downloads
Updated 08 Jun 2004
No License
Given an integer n, return the nth Fibonacci number.
David Terr (2021). Fibonacci.m (https://www.mathworks.com/matlabcentral/fileexchange/5093-fibonacci-m), MATLAB Central File Exchange. Retrieved .
Inspired: vectorized fibonacci
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Was just playing around:
L34: If you make it an mpower operation this function can support vector inputs.
fib = round( alpha.^n / sqrt(5) );
very good site