MATLAB Function Reference Previous page   Next Page
methods

Display information on class methods

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


Previous page  meshgrid methodsview Next page

© 1994-2005 The MathWorks, Inc.