Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

stairs (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

Details

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

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.

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