FUNCTION REFERENCE

mustBeNumericOrLogical

Validate that value is numeric or logical.

Validate that value is numeric or logical.

Syntax

mustBeNumericOrLogical(A)

Throws an error if A is not numeric or logical.

Example

mustBeNumericOrLogical([true false])

Differences from MATLAB: None.

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