Cody

Solution 1688013

Submitted on 6 Dec 2018
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
N = 2; y_correct=[4 3; 1 2]; assert(isequal(Ulam(N),y_correct))

Undefined function or variable 'x'. Error in Ulam (line 2) y = x; Error in Test1 (line 3) assert(isequal(Ulam(N),y_correct))

2   Fail
N = 3; y_correct=[5 4 3; 6 1 2; 7 8 9]; assert(isequal(Ulam(N),y_correct))

Undefined function or variable 'x'. Error in Ulam (line 2) y = x; Error in Test2 (line 3) assert(isequal(Ulam(N),y_correct))

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

Undefined function or variable 'x'. Error in Ulam (line 2) y = x; Error in Test3 (line 3) assert(isequal(Ulam(N),y_correct))

4   Fail
N = 5; y_correct=[17 16 15 14 13; 18 5 4 3 12; 19 6 1 2 11; 20 7 8 9 10; 21 22 23 24 25]; assert(isequal(Ulam(N),y_correct))

Undefined function or variable 'x'. Error in Ulam (line 2) y = x; Error in Test4 (line 3) assert(isequal(Ulam(N),y_correct))

Suggested Problems

More from this Author2