File Exchange

image thumbnail


version 1.2 (3.59 KB) by

Solves sudoku puzzle. Generates all possible answers.

1 Download


View License

Recursively solve sudoku.
Plus using constraints to minimize wrong guess.
It solved well defined sudoku puzzles in about 3 sec in my Matlab.

To create puzzle, use syntax s{r,c}=value. for all r,c,value=1~9.
for example, s{1,4}=5;

The submission attaches two examples for demo.

To see each move during solving, comment off show(s) in the function move at line 54.

Comments and Ratings (0)



add recursive routine to generate all answers.

MATLAB Release
MATLAB 7.6 (R2008a)
Tags Add Tags

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

» Watch video