Function File: [x, ntrial] = solvesudoku (s)

Solves a classical 9x9 sudoku. s should be a 9x9 array with numbers from 0:9. 0 indicates empty field. Returns the filled table or empty matrix if no solution exists. If requested, ntrial returns the number of trial-and-error steps needed.

Package: miscellaneous