Skip to content

step

Step plot — piecewise-constant series.

h = step(y, ...)
h = step(x, y, ...)

Draws a piecewise-constant signal — the value steps to a new level at each x and stays constant until the next. Common for control-system step responses and discrete signals.

step(t, response)
  • stairs — Stairs plot — like step but with the stems shown.
  • stem — Stem plot — vertical lines from the x-axis to each data point.
  • plot — 2D line / marker plot.