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