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

sign (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info
Download Help (Windows Only)

Owning Class: basic

Requires: MathScript RT Module


c = sign(a)


Returns the sign of the input elements.




Name Description
a Specifies a real or complex scalar, vector, or matrix.


Name Description
c Returns the sign of the elements in a. c is a scalar, vector, or matrix of the same size as a and, for real a, can return the following values: +1, 0, or -1. The sign of 0 is 0.


For nonzero complex numbers, this function returns a complex value with the same phase as the input and with a magnitude of 1.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes


C = sign([0, 2, -3])


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