mustBeA
Validate that value comes from one of specified classes
Description
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
Examples
Input Arguments
Tips
mustBeAis designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2020b