[X,Y,Z] = peaks(30); waterfall(X,Y,Z) xlabel('X-axis'), ylabel('Y-axis'), zlabel('Z-axis') title('Figure 27.8: Waterfall Plot')