File Exchange

image thumbnail

Sudoku

version 1.6 (7.21 KB) by

Solves 9X9 Sudokus of any difficulty level

2 Downloads

Updated

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.

Comments and Ratings (3)

Indraneel Biswas

You have a good solver. since u said u r into graphics, a GUI would enable easy data input.
i resolved the issue u mentioned in ur comment.

Updates

1.6

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

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

PLEASE RATE THE SUBMISSION AND COMMENT

1.2

NEED RATINGS PLEASE!

1.1

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

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired by: Simple Sudoku Solver

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video