Code covered by the BSD License  

Highlights from
MATLAB Contest - Gene Splicing

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

grade(sequence,target,budget,moves)
function score = grade(sequence,target,budget,moves)

% Copyright 2007 The MathWorks, Inc.

seq = doMoves(sequence,moves,budget);
score = sum(abs(seq-target));

Contact us at files@mathworks.com