Cody

Solution 1922807

Submitted on 5 Sep 2019
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
x=[ 1 5 4; 8 6 3; 0 9 7]; y_correct=[ 1 5 4; 8 6 3; 2 9 7]; assert(isequal(sudoku(x),y_correct))

Array indices must be positive integers or logical values. Error in sudoku (line 2) if x(i)==0; Error in Test1 (line 7) assert(isequal(sudoku(x),y_correct))

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

Array indices must be positive integers or logical values. Error in sudoku (line 2) if x(i)==0; Error in Test2 (line 7) assert(isequal(sudoku(x),y_correct))