Graphics Previous page   Next Page

Stairstep Plots

Stairstep plots display data as the leading edges of a constant interval (i.e., zero-order hold state). This type of plot holds the data at a constant y-value for all values between x(i) and x(i+1), where i is the index into the x data. This type of plot is useful for drawing time-history plots of digitally sampled data systems.

Example -- Stairstep Plot of a Function

Define a function f that varies over time,

Use stairs to display the function as a stairstep plot and a linearly interpolated function.

Annotate the graph and set the axes limits.

Previous page  Three-Dimensional Stem Plots Direction and Velocity Vector Graphs Next page

© 1994-2005 The MathWorks, Inc.