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