Simple Sudoku Solver

This is a very basic sudoku solver.
926 Downloads
Updated 18 Oct 2010

View License

So far I have not faced any sudokus this script can not solve. Please do write to report bugs or unsolved sudokus. The code was slow but I updated it to work faster. I have also included a 'clear' button for operational ease and a few more bug fixes.

The GUI can be run with sudokuSolver.m
If anyone wants to skip the GUI and use the basic code only, then comment the first line and uncomment the next few lines in sudokuB.m file and run the script. A file selection window will pop up where CSV format file can be selected as input. Few sample files are provided here.

I also have the script for Matlab7. Do write to me if interested.

Cite As

Indraneel Biswas (2024). Simple Sudoku Solver (https://www.mathworks.com/matlabcentral/fileexchange/29011-simple-sudoku-solver), MATLAB Central File Exchange. Retrieved .

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

Inspired: Sudoku

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Fixed the code to incorporate sudokus with assumptions

1.1.0.0

The code was slow but I updated it to work faster. I have also included a 'clear' button for operational ease and a few more bug fixes.

1.0.0.0