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 vectors.

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 vectors.

Examples

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

c = parcluster();
methods(c)

j1 = createJob(c);
methods(j1)

t1 = createTask(j1,@rand,1,{3});
methods(t1)

See Also

Introduced before R2006a

Was this topic helpful?