MATLAB: Colorbar

colorbar

Hi everyone,
I plot some data using 'surf' plus a colorbar at the end. The plot shows a pixelated picture. The colors which represent the data are not continuous and there is a sharp jump between colors. I was thinking if I can increase the number of the colors in the bar then it looks more continuoues. I will appreciate any help from you.
Thank you,
S.

Best Answer

You can change your colormap to have more colors. The default is 64.
colormap(jet(128))