ml_assert_nonnegintinf

Checks if a value is a nonnegative integer or Inf.

Contents

Syntax

ml_assert_nonnegintinf(value)
ml_assert_nonnegintinf(value, name)

Description

This function checks if a given value is a real, nonnegative integer value or Inf and throws an error if not.

Input

Output

---

See Also

ml_assert_nonnegint | ml_assert_nonnegscalar