Cody

Solution 2112570

Submitted on 31 Jan 2020
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
x = [0 0 0 0 0; 0 2 0 4 0; 0 0 0 0 0; 0 1 0 3 0] output = [2 4; 1 3]; assert(isequal(avengersAssemble(x),output))

Error in solution: Line: 3 Column: 44 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
x = [0 0 0 0 0 0 0; 0 2 0 4 0 6 0; 0 0 0 0 0 0 0; 0 1 0 3 0 5 0; 0 0 0 0 0 0 0; 0 7 0 8 0 9 0; 0 0 0 0 0 0 0;] output = [2 4 6; 1 3 5; 7 8 9]; assert(isequal(avengersAssemble(x),output))

Error in solution: Line: 3 Column: 44 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.