Skip to content

mustBeA

miscellaneous · scripts/miscellaneous/mustBeA.m

: mustBeA (x, typeNames)

Require that x is one of the named types (or a subclass).

typeNames may be a character vector, string array, or cell array of character vectors. Matches MATLAB R2026a (isa).