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

77 Solutions

38 Solvers

Last Solution submitted on Nov 13, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers38

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!