FUNCTION REFERENCE
superclasses
Names of the superclasses of a class.
Names of the superclasses of a class.
Syntax
superclasses(obj); superclasses('Name')Syntax
names = superclasses(obj); names = superclasses('Name')For an object of a classdef class or the name of a class file in the Current Folder, every superclass, direct or not, depth first and left to right as the classdef line lists them, each once, handle last. Without an output it prints "Superclasses for class Name:" and one name per line; a class without superclasses prints "No superclasses for class Name". With an output, a column cell.
Example
c = superclasses('handle') % {} (0x1)Differences from MATLAB: Only classdef classes in the Current Folder and handle.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.