[X,Y,Z] = peaks;
contour(X,Y,Z,20)   % generate 20 2-D contour lines
xlabel('X-axis'), ylabel('Y-axis')
title('Figure 26.20: 2-D Contour Plot')