Fibonacci Sequence - MATLAB Cody - MATLAB Central

Problem 58748. Fibonacci Sequence

Difficulty:Rate
Write a MATLAB function called fibonacci_sequence(n) that takes an integer n as input and returns the first n terms of the Fibonacci sequence as an array.

Solution Stats

19.7% Correct | 80.3% Incorrect
Last Solution submitted on May 07, 2025

Solution Comments

Show comments

Problem Recent Solvers21

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!