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
Solution Comments
Show comments
Loading...
Problem Recent Solvers22
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6685 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
513 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
103 Solvers
-
350 Solvers
-
512 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!