symtrue
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 symtrue
s where sz1,...,szN
indicates the size of each dimension. For example, symtrue(2,3)
returns a
2-by-3 array of symbolic logical symtrue
s.
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
, orxor
function, 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