[X,Y,Z] = peaks;
contour3(X,Y,Z,20)  % the same contour plot in 3-D
xlabel('X-axis'), ylabel('Y-axis'), zlabel('Z-axis')
title('Figure 26.21: 3-D Contour Plot')