[X,Y,Z] = peaks(30); surf(X,Y,Z) xlabel('X-axis'), ylabel('Y-axis'), zlabel('Z-axis') title('Figure 27.9: Surface Plot of Peaks')