figure(1)
[x,y] = meshgrid(-5:.1:5,-5:.1:5);
lambda = [1 1];
b = [1 .05];
surf(x,y,.5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y)
title('lambda = [1 1]')
figure(2)
z = .5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y;
contour(x,y,z)
title('lambda = [1 1]')
figure(3)
lambda = [1 .05]
surf(x,y,.5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y)
title('lambda = [1 .05]')
figure(4)
z = .5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y;
contour(x,y,z)
title('lambda = [1 .05]')
figure(5)
lambda = [1 0]
surf(x,y,.5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y)
title('lambda = [1 0]')
figure(6)
z = .5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y;
contour(x,y,z)
title('lambda = [1 0]')
figure(7)
lambda = [1 -1]
surf(x,y,.5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y)
title('lambda = [1 -1]')
figure(8)
z = .5*(lambda(1)*x.^2+lambda(2)*y.^2)+b(1)*x+b(2)*y;
contour(x,y,z)
title('lambda = [1 -1]')