Code covered by the BSD License  

Highlights from
MATLAB Contest - Sudoku

from MATLAB Contest - Sudoku by The MATLAB Contest Team
All the files needed to develop and score an entry for the MATLABĀ® Programming Contest.

solver(puzzle,list)
function solution = solver(puzzle,list)
% SOLUTION = SOLVER(PUZZLE,LIST) Sudoku solver 
%
% Copyright 2005 The MathWorks, Inc.

q = find(puzzle==0); 
puzzle(q) = list(1:numel(q));
solution = puzzle;

Contact us at files@mathworks.com