% A script to test grid_plot.m

% Generate a grid that should have two regions one centred around 1,2 and the other around 5,6

xcords = [rand(3,1)-0.5; (rand(3,1)-0.5)*5];
ycords = [(rand(3,1)-0.5)*2; (rand(3,1)-0.5)*6];

cost = rand(size(xcords),size(ycords));
grid_plot([xcords ycords],cost)
hold on
plot(