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

abs (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = abs(a)

Description

Computes the absolute values of the input elements. The absolute value of a complex number is equal to its magnitude, or the square root of the product of the number and its complex conjugate.

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of double-precision, floating-point numbers.

Outputs

Name Description
c Returns the absolute values of the elements in a. c is a real matrix of the same size as a.

Details

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

Examples

A = [1.3+2i, 4.2-3.7i; -2.9-1.6i, -5]
C = abs(A)

Related Topics

angle
unwrapphase


 

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