FUNCTION REFERENCE

mustBeGreaterThanOrEqual

Validate that value is greater than or equal to another value.

Validate that value is greater than or equal to another value.

Syntax

mustBeGreaterThanOrEqual(A, c)

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

Example

mustBeGreaterThanOrEqual([1 2], 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.