Here is a simple matlab function that allows to convert a vector into jet / heatmap colors.
HeatMap.m

Example of use :
clf
 x=1:10;
for i=1:10;
    plot(x(i),x(i),'ko','MarkerFaceColor',HeatMap(x(i),min(x),max(x)));
    hold on;
end