%Set up a 0 to n greyscale colormap, implement it.
function graymap(n)

mappy = [(0:n)/n; (0:n)/n; (0:n)/n]';
colormap(mappy);