superclasses - Names of superclasses - MATLAB (original) (raw)
Main Content
Syntax
Description
superclasses([ClassName](#d126e1765216))
displays the names of all visible superclasses of the MATLABĀ® class with the name ClassName
. Visible classes have a Hidden
attribute value of false
(the default).
superclasses([obj](#d126e1765242))
displays the names of all visible superclasses of object obj
, whereobj
is an instance of a MATLAB class. obj
can be either a scalar object or an array of objects.
[s](#d126e1765267) = superclasses(___)
returns the superclass names in a cell array of character vectors.
Examples
Find the superclass of the matlab.lang.OnOffSwitchState class
superclasses('matlab.lang.OnOffSwitchState')
Superclasses for class matlab.lang.OnOffSwitchState:
logical
Find the superclasses from an instance of the containers.Map class.
m = containers.Map('May',70); superclasses(m)
Superclasses for class containers.Map:
handle
Input Arguments
Class name specified as a character vector or string scalar.
Data Types: char
| string
Object of a MATLAB class, specified as a single object or an object array.
Output Arguments
Superclass names, returned as a cell array of character vectors.
Extended Capabilities
Version History
Introduced in R2008b