asserts.nonNan
Check that no numeric entry is NaN.
📝Syntax
asserts.nonNan(value)
[res, msg] = asserts.nonNan(value)
📥Input Arguments
Parameter Description
value Numeric or 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 no entry is NaN.

Infinite values are allowed by this assertion.

💡Examples
No NaN values
asserts.nonNan([1 Inf]);
Capture a NaN value
[res, msg] = asserts.nonNan([1 NaN]);
🔗See Also
asserts.finite
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub