FUNCTION REFERENCE

mustBeUnderlyingType

Validate that value has a specified underlying data type.

Validate that value has a specified underlying data type.

Syntax

mustBeUnderlyingType(A, types)

Throws an error if class(A) does not match any type in types.

Example

mustBeUnderlyingType(int8(1), "int8")

Differences from MATLAB: None.

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