This solution is outdated. To rescore this solution, sign in.
Humph! Solution 2234 uses imfilter, but this fails with imfilter not found!
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
A = [ ...
1 1 0 0
0 1 0 0
1 1 0 0
0 0 0 0];
B = [ ...
1 1 0 0
0 0 1 0
1 1 0 0
0 0 0 0];
assert(isequal(life(A),B))
Error: Undefined function 'imfilter' for input arguments of type 'double'.
|
2 | Fail |
%%
A = [ ...
0 1 1 0
1 1 1 0
0 0 1 0
0 0 0 0];
B = [ ...
1 0 1 1
1 0 0 0
0 0 1 1
0 1 1 0];
assert(isequal(life(A),B))
Error: Undefined function 'imfilter' for input arguments of type 'double'.
|
10742 Solvers
225 Solvers
Is my wife right? Now with even more wrong husband
1145 Solvers
Duplicate each element of a vector.
455 Solvers
Flip the vector from right to left
738 Solvers