Code covered by the BSD License  

Highlights from
Sudoku grid

image thumbnail
from Sudoku grid by Loren Shure
Sudoku grid, suitable for printing. Worth it to prevent fights over the newspaper.

sudokuGrid
function sudokuGrid
%sudokuGrid draws a 9x9 grid for conventional Su Doku.
%   sudokuGrid draws a conventional grid, suitable for printing.

%   Copyright 2006 The MathWorks, Inc.

hf = figure;
ha = axes('parent',hf);
axis([0 9 0 9]);
axis square
grid on
set(ha,'box','on')
set(ha,{'xticklabel' 'yticklabel'},{'' ''})
line([0 0],[0 9],'linewidth',2)
line([3 3],[0 9],'linewidth',2)
line([6 6],[0 9],'linewidth',2)
line([9 9],[0 9],'linewidth',2)
line([0 9],[0 0],'linewidth',2)
line([0 9],[3 3],'linewidth',2)
line([0 9],[6 6],'linewidth',2)
line([0 9],[9 9],'linewidth',2)

Contact us at files@mathworks.com