Cody

Solution 2525537

Submitted on 12 Jun 2020
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 = 1; s = 1; a = match_rot(n,s); assert(all(ismember(a(:),1:n))) assert(isequal(sum(sum(a == rot90(a))),s))

Undefined function 'match_rot' for input arguments of type 'double'. Error in Test1 (line 3) a = match_rot(n,s);

2   Fail
n = 4; s = 16; a = match_rot(n,s); assert(all(ismember(a(:),1:n))) assert(isequal(sum(sum(a == rot90(a))),s))

Undefined function 'match_rot' for input arguments of type 'double'. Error in Test2 (line 3) a = match_rot(n,s);

3   Fail
n = 4; s = 7; a = match_rot(n,s); assert(all(ismember(a(:),1:n))) assert(isequal(sum(sum(a == rot90(a))),s))

Undefined function 'match_rot' for input arguments of type 'double'. Error in Test3 (line 3) a = match_rot(n,s);

4   Fail
n = 5; s = 8; a = match_rot(n,s); assert(all(ismember(a(:),1:n))) assert(isequal(sum(sum(a == rot90(a))),s))

Undefined function 'match_rot' for input arguments of type 'double'. Error in Test4 (line 3) a = match_rot(n,s);