Owning Class: plots
Requires: MathScript RT Module
stairs(x, y)
stairs(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. |
This function is supported in the LabVIEW Run-Time Engine only if you request an output from the function. This function can remain in your scripts when you build a stand-alone application or shared library, but if you do not request an output, the LabVIEW Run-Time Engine does not execute this function. If you request an output, the LabVIEW Run-Time Engine executes this function as normal.
[X0, Y0] = stairs(1:10, rand(1, 10));
plot(X0, Y0)
[X0, Y0] = stairs(rand(1, 10));
plot(X0, Y0)