Code covered by the BSD License  

Highlights from
MATLAB Contest - blackbox

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

zeros(n);
function solution = solver(n)
% SOLVER Lame solver for the Black Box contest.
% 
%   SOLUTION = SOLVER(N) figures out the particles inside a black box by
%   shining light beams. N determines the size of the n-by-n black box.
%   The return value SOLUTION should contain your best guess for the n-by-n
%   game board. 
%

% Copyright 2006 The MathWorks, Inc.

[r,c,s] = beam(1,0);
[r,c,s] = beam(0,-n);
beam(n,0,'high');
solution = zeros(n);

Contact us at files@mathworks.com