Code covered by the BSD License  

Highlights from
MATLAB Contest - Molecule

image thumbnail

MATLAB Contest - Molecule

by

 

16 May 2002 (Updated )

All the files needed to develop and score an entry for the fifth MATLAB Programming Contest.

solver(kd,bx)
function xy = solver(kd,bx)

% Copyright 2002 The MathWorks, Inc.
    
% place points in a straight line down the middle
npts = size(kd,1);
xy = zeros(npts,2);
xy(:,2) = (bx(3) + bx(4))/2;
xy(:,1) = linspace(bx(1), bx(2), npts)';

Contact us