File Exchange

image thumbnail


version (17.9 KB) by Stepen Sahrun
This code generates a random Sudoku puzzle or solves any given Sudoku puzzle.


Updated 10 Feb 2012

View License

I've been addicted to Sudoku since I knew the game and I play this game almost daily in my cellphone. However, sometimes the puzzle that I tried to solve is quite hard because I need to 'guess' a value at some point. To clear my frustation, I made SudokuSolver.m to solve any given Sudoku puzzle. This m-file includes random guessing scheme, so, when it is given an empty Sudoku puzzle, it will solves it and as the result, it generates a random Sudoku puzzle. After that, another m-file, Sudoku.m was made to generate user-interface for SudokuSolver.m.

Comments and Ratings (1)


There is an issue I can't seem to fix, for the callback functions like startgameeasyfcn (~,~) in sudoku.m it gives an error saying '~' is an unexpected operator. Please help.


Correcting required products

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor