FUNCTION REFERENCE

mustBeInteger

Validate that value is an integer.

Validate that value is an integer.

Syntax

mustBeInteger(A)

Throws an error if any element of A is not a finite real integer value.

Example

mustBeInteger([1 2 -3])

Differences from MATLAB: None.

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