Skip to content

mustBeLessThan

miscellaneous · scripts/miscellaneous/mustBeLessThan.m

: mustBeLessThan (A, c)

Error unless every element of A is less than the scalar c.

A must be a real numeric or logical array (an empty array always passes); NaN elements never satisfy the comparison. Intended as a validation function for inputParser and similar checks.