Skip to Main Content Skip to Search
Product Documentation

false - Logical 0 (false)

Syntax

false
false(n)
false(m, n)
false(m, n, p, ...)
false(size(A))

Description

false is shorthand for logical(0).

false(n) is an n-by-n matrix of logical zeros.

false(m, n) or false([m, n]) is an m-by-n matrix of logical zeros.

false(m, n, p, ...) or false([m n p ...]) is an m-by-n-by-p-by-... array of logical zeros.

false(size(A)) is an array of logical zeros that is the same size as array A.

Tips

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

See Also

logical | true

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS