symtrue
Symbolic logical constant true
Description
symtrue is the symbolic logical constant for the true
condition.
returns a T = symtrue(sz1,...,szN)sz1-by-...-by-szN array
of symbolic logical symtrues where sz1,...,szN
indicates the size of each dimension. For example, symtrue(2,3) returns a
2-by-3 array of symbolic logical symtrues.
Examples
Input Arguments
Output Arguments
Tips
The command
sym(true)returns a symbolic number1, andsym(symtrue)returnssymtrue.When you combine two arrays of symbolic logical constants with logical operations using
and,or, orxorfunction, the arrays must either be the same size or have sizes that are compatible. For more information on the required input sizes for basic array operations, see Compatible Array Sizes for Basic Operations.
Version History
Introduced in R2020a