A = [1 2 3; 4 5 6; 7 8 9];

figure(1), imagesc(A);
colormap gray;

figure(2), imagesc(A);
colormap cool;