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 (2026). Fibonacci.m (https://nl.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 LinuxCategories
Find more on Number Theory in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Fibonacci sequence, vectorized fibonacci
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | I fixed the input checking. |
