FUNCTION REFERENCE

mustBeLessThan

Validate that value is less than another value.

Validate that value is less than another value.

Syntax

mustBeLessThan(A, c)

Throws an error if any element of A is not less than c.

Example

mustBeLessThan([0 1], 2)

Differences from MATLAB: Only scalar real c is supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.