Cody

Solution 872360

Submitted on 12 Apr 2016
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 = [12 4 7; 5 1 4]; y_correct = [7 4 12; 4 1 5]; assert(isequal(your_fcn_name(x),y_correct))

m = 2 n = 3 y = 7 4 y = 7 4 4 1 y = 7 4 12 4 1 5

2   Fail
x = [12 4 7 8; 5 1 4 8]; y_correct = [8 4 7 12; 8 1 4 5]; assert(isequal(your_fcn_name(x),y_correct))

m = 2 n = 4 y = 8 8 y = 8 7 8 4 y = 8 7 4 8 4 1 y = 8 7 4 12 8 4 1 5

Assertion failed.