methods - List functions of object class

Syntax

methods(obj)
out = methods(obj)

Arguments

obj

An object or an array of objects.

out

Cell array of strings.

Description

methods(obj) returns the names of all methods for the class of which obj is an instance.

out = methods(obj) returns the names of the methods as a cell array of strings.

Examples

Create job manager, job, and task objects, and examine what methods are available for each.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
methods(jm)
Methods for class distcomp.jobmanager:
createJob          demote        pause         resume
createParallelJob  findJob       promote

j1 = createJob(jm);
methods(j1)
Methods for class distcomp.job:
cancel      destroy   getAllOutputArguments  waitForState
createTask  findTask  submit

t1 = createTask(j1, @rand, 1, {3});
methods(t1)
Methods for class distcomp.task:
cancel   destroy  waitForState

See Also

help, get

  


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