Cody

Solution 464160

Submitted on 30 Jun 2014
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
%Block Still 1 m=[0 0 0 0;0 1 1 0;0 1 1 0;0 0 0 0]; n=Life_Period(m); assert(n==1)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
2   Fail
%% %Beehive Still 1 m=[0 0 0 0 0 0;0 0 1 1 0 0;0 1 0 0 1 0;0 0 1 1 0 0;0 0 0 0 0 0]; n=Life_Period(m); assert(n==1)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
3   Fail
%% %Loaf Still 1 m=[0 0 0 0 0 0;0 0 1 1 0 0;0 1 0 0 1 0;0 0 1 0 1 0;0 0 0 1 0 0;0 0 0 0 0 0]; n=Life_Period(m); assert(n==1)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
4   Fail
%% %Boat Still 1 m=[0 0 0 0 0;0 1 1 0 0;0 1 0 1 0;0 0 1 0 0;0 0 0 0 0]; n=Life_Period(m); assert(n==1)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
5   Fail
%% %Table Still 1 m=[0 0 0 0 0 0 0;0 1 1 0 1 1 0;0 0 1 0 1 0 0;0 0 1 0 1 0 0;0 1 1 0 1 1 0;0 0 0 0 0 0 0]; n=Life_Period(m); assert(n==1)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
6   Fail
%% %Blinker Osc 2 m=[0 0 0 0 0;0 0 0 0 0;0 1 1 1 0;0 0 0 0 0;0 0 0 0 0]; n=Life_Period(m); assert(n==2)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
7   Fail
%% %Toad Osc 2 m=[0 0 0 0 0 0;0 0 0 0 0 0;0 0 1 1 1 0;0 1 1 1 0 0;0 0 0 0 0 0;0 0 0 0 0 0]; n=Life_Period(m); assert(n==2)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
8   Fail
%% %Beacon Osc 2 m=[0 0 0 0 0 0;0 1 1 0 0 0;0 1 1 0 0 0;0 0 0 1 1 0;0 0 0 1 1 0;0 0 0 0 0 0]; n=Life_Period(m); assert(n==2)
Error: Undefined function 'nextlife' for input arguments of type 'double'.
9   Fail
%% %Caterer Osc 3 m=[0 0 0 0 0 0 0 0 0 0;0 0 0 1 0 0 0 0 0 0;0 1 0 0 0 1 1 1 1 0;0 1 0 0 0 1 0 0 0 0;0 1 0 0 0 0 0 0 0 0;0 0 0 0 1 0 0 0 0 0;0 0 1 1 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0;]; n=Life_Period(m); assert(n==3)
Error: Undefined function 'nextlife' for input arguments of type 'double'.