stairs
Stairstep graph
Syntax
stairs(Y)
stairs(X,Y)
stairs(___,LineSpec)
stairs(___,Name,Value)
stairs(ax,___)
h = stairs(___)
[xb,yb] = stairs(___)
Description
stairs(
draws a stairstep graph of the elements in Y
)Y
.
-
If
Y
is a vector, thenstairs
draws one line. -
If
Y
is a matrix, thenstairs
draws one line per matrix column.
stairs(
plots the elements in X
,Y
)Y
at the locations specified by X
. The inputs X
and Y
must be vectors or matrices of the same size. Additionally, X
can be a row or column vector and Y
must be a matrix with length(X)
rows.
stairs(___,
specifies a line style, marker symbol, and color. For example, LineSpec
)':*r'
specifies a dotted red line with asterisk markers. Use this option with any of the input argument combinations in the previous syntaxes.
stairs(___,
modifies the stairstep chart using one or more name-value pair arguments. For example,Name,Value
)'Marker','o','MarkerSize',8
specifies 8 point circle markers.