Cody

Solution 408431

Submitted on 23 Feb 2014 by Debopam
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   Pass
%% n = 1; f = 1; assert(isequal(fib(n),f))

2   Pass
%% n = 6; f = 8; assert(isequal(fib(n),f))

b = 1 b = 2 b = 3 b = 5 b = 8

3   Pass
%% n = 10; f = 55; assert(isequal(fib(n),f))

b = 1 b = 2 b = 3 b = 5 b = 8 b = 13 b = 21 b = 34 b = 55

4   Pass
%% n = 20; f = 6765; assert(isequal(fib(n),f))

b = 1 b = 2 b = 3 b = 5 b = 8 b = 13 b = 21 b = 34 b = 55 b = 89 b = 144 b = 233 b = 377 b = 610 b = 987 b = 1597 b = 2584 b = 4181 b = 6765

More from this Author95