Skip to content

mustBeGreaterThan

miscellaneous · scripts/miscellaneous/mustBeGreaterThan.m

: mustBeGreaterThan (A, c)

Error unless every element of A is greater 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.