Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

methods - Class method names

Syntax

methods('classname')
methods(...,'-full')
m = methods(...)

Description

methods('classname') displays the names of the methods for the class classname. If classname is a MATLAB or Java class, then methods displays only public methods, including those methods inherited from superclasses.

methods(...,'-full') displays a full description of the methods, including inheritance information and, for MATLAB and Java methods, method attributes and signatures. methods does not remove duplicate method names with different signatures. Do not use this option with classes defined before MATLAB 7.6.

m = methods(...) returns the method names in a cell array of strings.

methods is also a MATLAB class-definition keyword. See classdef for more information on class-definition keywords.

Examples

Retrieve the names of the static methods in class MException:

methods('MException')

Methods for class MException:

addCause       getReport      ne             throw          
eq             isequal        rethrow        throwAsCaller  

Static methods:

last     

See Also

events | methodsview | properties | what | which

Tutorials

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS