Cody

Solution 2130438

Submitted on 16 Feb 2020 by William
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
n = 1; A = 3; assert(isequal(matrix_design(n),A))

2   Pass
for n=[2 10 50]; A=matrix_design(n); assert(sum(abs(eig(matrix_design(n))-3)<1e-3)>= 1 && min(diff(sort(A(:))))>=0.5) end