Cody

Solution 1652801

Submitted on 18 Oct 2018 by Binbin Qi
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
x = randi(10,5,5); y=elmex(x) assert(isequal(y(1),x(6)))

y = 2 5 5 4 2 6 4 7 10 4 5 3 2 2 8 6 2 10 4 6

2   Pass
x = [0 1 2 3;12 15 5 62;3 0 0 9;17 89 6 1]; y_correct = [1 2 3 12 5 62 3 0 9 17 89 6]; assert(isequal(elmex(x),y_correct))

3   Pass
x = ones(6,6); y_correct = ones(1,30); assert(isequal(elmex(x),y_correct))

Suggested Problems

More from this Author4