Code covered by the BSD License  

Highlights from
MATLAB Contest - Gerrymander

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

solver(map,n)
function d = solver(map,n)
%
% Copyright 2004 The MathWorks, Inc.

d = ones(size(map));
d(1:n) = n:-1:1;

Contact us at files@mathworks.com