Stairstep graph
stairs(
draws a
stairstep graph of the elements in Y
)Y
.
If Y
is a vector, then stairs
draws
one line.
If Y
is a matrix, then stairs
draws
one line per matrix column.
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.