Cody

Solution 943124

Submitted on 26 Aug 2016 by J.R.! Menzinger
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 = 4; y_correct = [16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1] assert(isequal(magic_mat(x),y_correct))

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

More from this Author2