clc
clear
x = -10:0.5:10;
y = -10:0.5:10;
[X, Y] = meshgrid(x, y);
Z = X.^2 - 2.*X.*Y + 4.*Y.^2;
surf(X, Y, Z);
hold on;
contour3(X, Y, Z, 20);
title('Final Exam Problem No. 5, by "Kimberly Randle"');
xlabel('x');
ylabel('y');
zlabel('z');
grid on;
To embed this project on your website, copy the following code and paste it into your website's HTML: