External Interfaces/API Reference |
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:
h = actxcontrol('mwsamp.mwsampctrl.1', [0 0 200 200]); methods(h) Methods for class com.mwsamp.mwsampctrl.1: AboutBox GetR8Array SetR8 move Beep GetR8Vector SetR8Array propedit FireClickEvent GetVariantArray SetR8Vector release GetBSTR GetVariantVector addproperty save GetBSTRArray Redraw delete send GetI4 SetBSTR deleteproperty set GetI4Array SetBSTRArray events GetI4Vector SetI4 get GetIDispatch SetI4Array invoke GetR8 SetI4Vector load
Display a full description of all methods on Java object, java.awt.Dimension
:
methods java.awt.Dimension -full Dimension(java.awt.Dimension) Dimension(int,int) Dimension() void wait() throws java.lang.InterruptedException % Inherited from java.lang.Object void wait(long,int) throws java.lang.InterruptedException % Inherited from java.lang.Object void wait(long) throws java.lang.InterruptedException % Inherited from java.lang.Object java.lang.Class getClass() % Inherited from java.lang.Object . .
See Also
methodsview
, invoke
, ismethod
, help
, what
, which
load (COM) | methodsview |