MATLAB Function Reference    
methods

Display method names

Syntax

Description

m = methods('classname') returns, in a cell array of strings, the names of all methods for the MATLAB, COM, or Java class, classname.

m = methods('object') returns the names of all methods for the MATLAB, COM, or Java class of which object is an instance.

m = methods(..., '-full') returns the full description of the methods defined for the class, including inheritance information and, for COM and Java methods, attributes and signatures. For any overloaded method, the returned array includes a description of each of its signatures.

For MATLAB classes, inheritance information is returned only if that class has been instantiated.

Examples

List the methods of MATLAB class, stock:

Create a MathWorks sample COM control and list its methods:

Display a full description of all methods on Java object, java.awt.Dimension:

See Also

methodsview, invoke, ismethod, help, what, which


  meshgrid methodsview