Home > Support > NI Product Manuals > LabVIEW Communications System Design Suite 1.0 Manual
Version:

    Computes the sum of all diagonal elements in a matrix.

    Syntax

    c = trace(a)

    Inputs

    a

    Scalar or square matrix.

    Outputs

    c

    Sum of all diagonal elements in a. c is a scalar. If a is single-precision, c is single-precision, otherwise c is double-precision.