tf = issubclass(SubClassName,SuperClassName)
Returns true if the specified "SubClassName" is a subclass of
the class specified by "SuperClassName", otherwise returns false.
SubClassName: string. Name of the "Sub Class" that you are testing
to see if it was inherited from the specified
SuperClassName: string. Name of the "Super Class" that you are
testing to see if the sub-class was inherited from
tf: logical, true if "SubClassName" is in fact a subclass of "SuperClassName"
>> tf = issubclass('MySubClass','MySuperClass')
>> x = MySubClass;
>> y = MySuperClass;
>> tf = issubclass(class(x),class(y);
Jesse Hopkins (2021). issubclass (https://www.mathworks.com/matlabcentral/fileexchange/34706-issubclass), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!