Table Of Contents

abs

Version:
    Last Modified: December 12, 2016

    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.

    Syntax

    c = abs(a)

    Inputs

    a

    Scalar or array of any dimension of numeric or Boolean values.

    Outputs

    c

    Absolute values of the elements in a. c is an array of the same size as a of double precision numbers.

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

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: DAQExpress does not support FPGA devices


    Recently Viewed Topics