% Plots the objective function in 
% the minimization basic example.

x = -10:0.1:10;
y = -10:0.1:10;
[X,Y] = meshgrid(x,y);
Z = exp(X).*(4*X.^2+2*Y.^2+4*X.*Y+2*Y+1);
surf(X,Y,Z);
shading interp