asserts.allfalse
Check that every logical entry is false.
📝Syntax
asserts.allfalse(value)
[res, msg] = asserts.allfalse(value)
📥Input Arguments
Parameter Description
value Logical scalar or array.
📤Output Arguments
Parameter Description
res true if the assertion passes, false otherwise.
msg assertion failure message, empty on success.
📄Description

The assertion passes when every logical entry is false.

Non-logical inputs raise an argument error immediately.

💡Examples
All false
asserts.allfalse([false false]);
Capture a true entry
[res, msg] = asserts.allfalse([false true]);
🔗See Also
asserts.alltrueasserts.isfalse
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub