Main Content


View class methods



methodsview(namespace.classname) displays information about the methods in the class classname. If the class is in a namespace, include namespace. If classname is a MATLAB® or Java® class, methodsview lists only public methods, including those methods inherited from superclasses.

methodsview creates a window that displays the methods and information such as arguments, returned values, and superclasses. It also includes method qualifiers (for example, abstract or synchronized) and possible exceptions thrown.

methodsview(object) displays information for the class of object.


collapse all

List information on all methods in the java.awt.MenuItem class. MATLAB displays this information in a new window.


Input Arguments

collapse all

Fully qualified class name, specified as a string or a character vector.

Object name, specified as a string or a character vector.

Version History

Introduced before R2006a