Fibonacci.m

Version 1.0.0.0 (387 Bytes) by David Terr
Given an integer n, return the nth Fibonacci number.
20.5K Downloads
Updated 8 Jun 2004

No License

Given an integer n, return the nth Fibonacci number.

Cite As

David Terr (2024). Fibonacci.m (https://www.mathworks.com/matlabcentral/fileexchange/5093-fibonacci-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Fibonacci sequence, vectorized fibonacci

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

I fixed the input checking.