Products & Services Solutions Academia Support User Community Company

Learn more about Instrument Control Toolbox   

methods - Class method names and descriptions

Syntax

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

Arguments

m

Cell array of strings

'classname'

Class whose methods are returned

object

An instrument object or device group object

'-full'

Request to return full descriptions of methods

Description

m = methods('classname') returns, in a cell array of strings, the names of all methods for the class with the name classname.

m = methods(object) returns the names of all methods for the class of which object is an instance.

m = methods(...,'-full') returns full descriptions of the methods in the class, including inheritance information and, for Java™ methods, also attributes and signatures. Duplicate method names with different signatures are not removed. If classname represents a MATLAB class, then inheritance information is returned only if that class has been instantiated.

Remarks

methods differs from what in that the methods from all method directories are reported together, and methods removes all duplicate method names from the result list. methods will also return the methods for a Java class.

See Also

Functions

methodsview, what, which, help

  


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