FUNCTION REFERENCE

mustBeGreaterThan

Validate that value is greater than another value.

Validate that value is greater than another value.

Syntax

mustBeGreaterThan(A, c)

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

Example

mustBeGreaterThan([2 3], 1)

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.