Simple Sudoku Solver

This is a very basic sudoku solver.

You are now following this Submission

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 (2026). Simple Sudoku Solver (https://www.mathworks.com/matlabcentral/fileexchange/29011-simple-sudoku-solver), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Sudoku

Categories

Find more on Sudoku in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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