www.pudn.com > calibr8.zip > makeGrid.m
function Spoints = makeGrid( sizeX, sizeY, stepX, stepY ) % % Spoints = function makeGrid( sizeX, sizeY, stepX, stepY ) % % creates the calibration grid % % sizeX - number of columns % sizeY - number of rows % stepX - distance between columns % stepY - distance between rows for i = 1:sizeX k = 0; for j = 1:sizeY Spoints((i-1)*sizeY + j, 2) = (i-1)*stepX; Spoints((i-1)*sizeY + j, 1) = k; k = k + stepY; end; end;