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

Superclass names

Syntax

superclasses('ClassName')
superclasses(obj)
s = superclasses(...)

Description

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) 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 strings.

Examples

Get the name of the matlab.mixin.SetGet class superclass:

superclasses('matlab.mixin.SetGet')

Superclasses for class matlab.mixin.SetGet:

    handle

Related Examples

Was this topic helpful?