Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. For example,
>> fib_seq(34)
ans =
1 1 2 3 5 8 13 21
>> fib_seq(35)
ans =
1 1 2 3 5 8 13 21 34
While evaluating the solution, the server encountered an error caused by temporary unavailability of MATLAB Service. Wait a few minutes for the MATLAB Service to return, and then rescore.
Should I wait for how long?
Back to basics 23 - Triangular matrix
532 Solvers
Permute diagonal and antidiagonal
179 Solvers
The Answer to Life, the Universe, and Everything
312 Solvers
341 Solvers
Matlab Basics - Convert a row vector to a column vector
300 Solvers