[X,Y] = meshgrid(-1:.1:2,-3:.1:3);
Z = Y.^2.*(X-1)+X.^3;
[C,h] = contour(X,Y,Z);
set(h,'ShowText','on','TextStep',get(h,'LevelStep')*2)
colormap cool