Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

superclasses

Names of superclasses

Syntax

superclasses(ClassName)
superclasses(obj)
s = superclasses(___)

Description

example

superclasses(ClassName) 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) displays the names of all visible superclasses of object obj, where obj is an instance of a MATLAB class. obj can be either a scalar object or an array of objects.

s = superclasses(___) returns the superclass names in a cell array of character vectors.

Examples

collapse all

Find the superclasses for the matlab.lang.OnOffSwitchState class.

superclasses('matlab.lang.OnOffSwitchState')
Superclasses for class matlab.lang.OnOffSwitchState:

    logical

Find the superclasses for an instance of the containers.Map class.

m = containers.Map('May',70)
superclasses(m)
Superclasses for class containers.Map:

    handle

Input Arguments

collapse all

Class name, specified as a character vector.

Example: superclasses('MyClass')

Data Types: char

Object of a MATLAB class, specified as a single object or an object array.

Example: superclasses(obj)

Output Arguments

collapse all

Superclass names, returned as a cell array of character vectors.

Introduced in R2008a

Was this topic helpful?