FUNCTION REFERENCE

mustBeFinite

Validate that value is finite.

Validate that value is finite.

Syntax

mustBeFinite(A)

Throws an error if any element of A is Inf, -Inf, or NaN.

Example

mustBeFinite([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.