Sudoku

Solves 9X9 Sudokus of any difficulty level
1.4K Downloads
Updated 15 Dec 2010

View License

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.

Cite As

Mohit Gupta (2024). Sudoku (https://www.mathworks.com/matlabcentral/fileexchange/29021-sudoku), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Sudoku in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Simple Sudoku Solver

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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