Problem 42248. Return fibonacci sequence do not use loop and condition version 3

Solution 816347

Submitted on 29 Jan 2016
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% n = 2; f = fib(n); assert(isequal(f() + f(),f())); assert(isequal(f(),5));

Assertion failed.

2   Fail
%% n = 7; f = fib(n); assert(isequal(f() + f(),f())); assert(isequal(f() + f(),f())); assert(isequal(f(),233));

Assertion failed.

Suggested Problems

More from this Author17

Community Treasure Hunt

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

Start Hunting!