Logical 1 (true)
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.
true(n)
is much faster and more
memory efficient than logical(true(n))
.