Note: This page has been translated by MathWorks. Click here to see

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

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

Logical 0 (false)

`false`

`F = false(n)`

`F = false(sz)`

`F = false(sz1,...,szN)`

`F = false(___,'like',p)`

`false`

is shorthand for the logical value `0`

.

is
a `F`

= false(`sz1,...,szN`

)`sz1`

-by-`...`

-by-`szN`

array
of logical zeros where `sz1,...,szN`

indicates the
size of each dimension. For example, `false(2,3)`

returns
a 2-by-3 array of logical zeros.

`false(n)`

is much faster and more memory efficient than`logical(zeros(n))`

.