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

Syntax

stairs(x, y)

stairs(y)

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

[x0, y0] = stairs(y)

Description

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.

Examples

Inputs

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.

Outputs

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

Details

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

Examples

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

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

Related Topics

plot


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit