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

    Generates a logical array of ones.

    Syntax

    c = true(a)
    c = true(a, b)
    c = true(a, b, ...)
    c = true(v)
    c = true(..., class)

    Inputs

    a

    Number of rows for the Boolean array. a is a non-negative integer. If a is zero, the function returns an empty array.

    b

    Number of columns for the Boolean array. b is a non-negative integer. If b is zero, the function returns an empty array.

    ...

    Further parameters for specifying the number of elements in higher dimensions. You can replace one parameter for any dimension with an empty array, for example, reshapemx([1,2,3,4,5,6], 2, []). The array then is a placeholder for an unspecified size. MathScript uses the array size and the reshape size to calculate the unspecified size automatically.

    v

    Vector with number of rows, columns, and further dimensions. The elements of v are non-negative integers.

    class

    Class of the returned array. The default value is 'logical'.

    'logical'

    logical

    Outputs

    c

    Array of Boolean ones of any dimensions. If you only specify a, c returns a square matrix of length a.