Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

stairs (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module


stairs(x, y)


[x0, y0] = stairs(x, y)

[x0, y0] = stairs(y)


Returns matrices you can use to plot stairstep graphs. stairs(y) is equivalent to stairs(1:size(y, 1), y). If you do not request an output, this function plots stairstep graphs in the current plot window.



Name Description
x Specifies a real matrix. The elements in x must be in ascending order. If y is a vector, x must be a vector of the same length. If y is a matrix, x must be a matrix of the same size or an array whose length is equal to the number of rows in y.
y Specifies a real matrix.


Name Description
x0 Returns a matrix you can use to plot stairstep graphs.
y0 Returns a matrix you can use to plot stairstep graphs.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes (if you request output)
Supported on RT targets No


[X0, Y0] = stairs(1:10, rand(1, 10));
plot(X0, Y0)

[X0, Y0] = stairs(rand(1, 10));
plot(X0, Y0)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful