FUNCTION REFERENCE

stairs

Stairstep plot.

Stairstep plot.

Syntax

stairs(x, y)

Syntax

stairs(y, 'r--')

Draws steps through the points. A line spec or name/value pairs such as 'LineWidth', 2 can follow.

Example

stairs(1:4, [2 4 1 3])   % four steps

Differences from MATLAB: Real coordinates only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.