Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Was this topic helpful?