The Fibonacci sequence is defined by the rule that each number is the sum of the two preceding ones. Sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
Write a function that returns the first n numbers of the Fibonacci sequence.

Solution Stats

22 Solutions

9 Solvers

Last Solution submitted on Jun 24, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers9

Suggested Problems

More from this Author30

Problem Tags

Community Treasure Hunt

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

Start Hunting!