Cody

Solution 1703104

Submitted on 5 Jan 2019 by Martin C.
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 = magic(4); y_correct = [5 2 11 7 3 13]; assert(isequal(your_fcn_name(x),y_correct))

x = 16 5 9 4 2 11 7 14 3 10 6 15 13 8 12 1 y = 5 2 11 7 3 13

2   Pass
x = magic(5); y_correct = [17 23 11 5 7 13 19 2 3]; assert(isequal(your_fcn_name(x),y_correct))

x = 17 23 4 10 11 24 5 6 12 18 1 7 13 19 25 8 14 20 21 2 15 16 22 3 9 y = 17 23 11 5 7 13 19 2 3