For example:
A = [1 0 0 0 0 0 0 0 0;
0 0 4 0 0 5 0 0 9;
0 0 0 8 0 1 0 7 0;
0 6 1 0 0 0 0 0 5;
9 0 0 7 0 4 0 0 3;
2 0 0 0 0 0 4 9 0;
0 4 0 5 0 8 0 0 0;
7 0 0 2 0 0 3 0 0;
0 0 0 0 0 0 0 0 1];
And the program instead of zeros give the right values.
Jurij Rici (2021). Sudoku 9 x 9 (https://www.mathworks.com/matlabcentral/fileexchange/28248-sudoku-9-x-9), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.