mustBeA
- : 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).
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).