MATLAB: Contourf with more colours

colormapcontourf

With the function contourf I created the picture below. I would like to have more color gradations in it. I succeeded in the colorbar.
Does anyone have an idea?

Best Answer

You can specify the 4 input argument to contourf() to specify the number of levels you want.
contourf(x,y,z,50); % 50 levels will be created