Validate that value comes from one of specified classes
mustBeA(
compares value
,classNames
)value
with a list of class names in classNames
and throws an error if the class of value
is not one of the named classes or a subclass of one of the named classes. This function does not return a value.
Class support: All MATLAB® classes
mustBeA
is designed to be used for property and function argument validation.