MATLAB Function Reference | ![]() ![]() |
Syntax
n = methods class_name n = methods class_name -full
Description
n = methods('class_name')
returns, in a cell array of strings, the names of all methods for the MATLAB or Java class with the name class_name
.
n = methods('class_name','-full')
returns, in a cell array of strings, the full description of the methods defined for the class, including inheritance information and, for Java methods, attributes and signatures. For any overloaded method, the returned array includes a description of each of its signatures. If class_name
represents a MATLAB class, then inheritance information is returned only if that class has been instantiated.
Examples
To display a full description of all methods on Java object java.awt.Dimension
methods java.awt.Dimension -full Methods for class java.awt.Dimension: Dimension() Dimension(java.awt.Dimension) Dimension(int,int) java.lang.Class getClass() % Inherited from java.lang.Object int hashCode() % Inherited from java.lang.Object boolean equals(java.lang.Object) java.lang.String toString() void notify() % Inherited from java.lang.Object void notifyAll() % Inherited from java.lang.Object void wait(long) throws java.lang.InterruptedException % Inherited from java.lang.Object void wait(long,int) throws java.lang.InterruptedException % Inherited from java.lang.Object void wait() throws java.lang.InterruptedException % Inherited from java.lang.Object java.awt.Dimension getSize() void setSize(java.awt.Dimension) void setSize(int,int)
See Also
methodsview
, help
, what
, which
![]() | meshgrid | methodsview | ![]() |