Sudoku

版本 1.6.0.0 (7.2 KB) 作者: Mohit Gupta
Solves 9X9 Sudokus of any difficulty level
1.4K 次下载
更新时间 2010/12/15

查看许可证

How to use it?
just call sudokuSolver() and enter the elements in appropriate places and then press >> to get the output. (all other function files are called by it)
Output
If the program needs to try putting random solving, it will show first how much it could solve before trying it(as matrix b in command window) and then give the answer.In this case it will also create a back.mat file which can be used to find more solutions to the problem(if possible)
If the sudoku entered is incorrect, i.e., unsolvable, the output will be a null matrix or an error.
Random solving will give only one of the possible number of outputs.

Please let me know if someone wants code for 6X6 or of other size sudokus.Though I have not received any errors from this so far,please report if you encounter any.
PLEASE RATE THE SUBMISSION AND COMMENT!!!

Also check out a really amazing game ( i call logic game )available in file exchange.

引用格式

Mohit Gupta (2025). Sudoku (https://ww2.mathworks.cn/matlabcentral/fileexchange/29021-sudoku), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Sudoku 的更多信息
致谢

参考作品: Simple Sudoku Solver

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.6.0.0

Please send in suggestions and rate the submission.Also check out a really amazing game ( i call logic game )available in file exchange.

1.5.0.0

I've added an attractive Graphics-User-Interface to the program.
I've also uploaded a few problems for downloaders to test my work.

1.3.0.0

PLEASE RATE THE SUBMISSION AND COMMENT

1.2.0.0

NEED RATINGS PLEASE!

1.1.0.0

I've explained the ambiguities in the output obtained to make it more understandable

1.0.0.0