abs (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助