true
Logical 1 (true)
Description
true is shorthand for the logical value 1.
is
a T = true(sz1,...,szN)sz1-by-...-by-szN array
of logical ones where sz1,...,szN indicates the
size of each dimension. For example, true(2,3) returns
a 2-by-3 array of logical ones.
Examples
Input Arguments
Output Arguments
Tips
true(n)is much faster and more memory efficient thanlogical(true(n)).
Extended Capabilities
Version History
Introduced before R2006a