This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Seban
on 4 Jan 2013
I don't get why this isn't correct.
I got the equation from 1) and the calculations are correct when I use Matlab at home (see 2)).
1) https://en.wikipedia.org/wiki/Fibonacci_number#Matrix_form
2) https://en.wikipedia.org/wiki/Fibonacci_number#List_of_Fibonacci_numbers
David Melton
on 12 Jul 2013
this would work if you returned floor(f).
Seban
on 13 Jul 2013
Thank you =)
Suggested Problems
-
2650 Solvers
-
Longest run of consecutive numbers
5966 Solvers
-
1671 Solvers
-
356 Solvers
-
2136 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!