真的
Logical 1 (true)
Description
真的
is shorthand for the logical value1
.
is aT
= true(sz1,...,szN
)sz1
-by-...
-by-szN
array of logical ones wheresz1,...,szN
indicates the size of each dimension. For example,真的(2,3)
returns a 2-by-3 array of logical ones.
Examples
Input Arguments
Output Arguments
Tips
真的(n)
is much faster and more memory efficient thanlogical(true(n))
.