%Level Curves Demo
close all

figure;
[X2,Y2]=meshgrid(-5:.1:5);
Z2=Y2.^2-X2.^2;
contour(X2,Y2,Z2)
title('Level curves of z = y^2-x^2')


figure;
[C2,h2]=contour(X2,Y2,Z2);
clabel(C2,h2)
title('Level curves of z = y^2-x^2 with labels.')

figure
contour3(X2,Y2,Z2)
title('Level curves of z = y^2-x^2 at actual height.')

figure
surf(X2,Y2,Z2)
title('Surface z = y^2-x^2')