Sudoku Generator

Watch as successive solutions are generated using backtracking algorithm. Each step displayed, charset randperm gives variability.

You are now following this Submission

Run testSudoku.m
An initial solution from scratch, then successive solution steps are generated and displayed.
Keep hitting space bar to generate another solution.
Sudoku Generator gives you a peek as successive solutions are generated.
Remember to make command window a bit large for proper visualization.
Randperm of charset gives apparent variability for each run.

Cite As

Steve Lenk (2026). Sudoku Generator (https://uk.mathworks.com/matlabcentral/fileexchange/170376-sudoku-generator), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

Randperm of charset gives apparent variability for each run. Definitely more interesting.

1.0.0