Cody

Solution 1540538

Submitted on 25 May 2018 by J. S. Kowontan
  • Size: 51
  • This is the leading solution.
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 =[1 2 5 6; 3 4 7 8; 9 10 13 14; 11 12 15 16] y_correct =[1 5 9 13 2 3 4 6 7 8 10 11 12 14 15 16]; assert(isequal(your_fcn_name(x),y_correct))

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

2   Pass
x =1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x =[1 2 5 6 1 6; 3 4 7 8 2 3; 9 10 13 14 6 8; 11 12 15 16 5 7] y_correct =[1 5 1 9 13 6 2 3 4 6 7 8 6 2 3 10 11 12 14 15 16 8 5 7]; assert(isequal(your_fcn_name(x),y_correct))

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