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
-
Return the largest number that is adjacent to a zero
5431 Solvers
-
1757 Solvers
-
1375 Solvers
-
539 Solvers
-
1145 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!