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

true (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: matrix

Requires: MathScript RT Module

Syntax

c = true(a)

c = true(a, b)

Description

Generates a logical matrix of ones. This matrix is different from the matrix of double-precision, floating-point numbers that the ones function generates because a logical array can hold values of 0 or 1 only.

Examples

Inputs

Name Description
a Specifies the number of rows for the Boolean matrix. a is a positive integer.
b Specifies the number of columns for the Boolean matrix. b is a positive integer.

Outputs

Name Description
c Returns a matrix of Boolean ones with a rows and b columns. If you do not specify b, c returns a square matrix of length 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

C = true(3, 5)

Related Topics

false
logical
ones
zeros


 

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