Skip to content

methods

miscellaneous · scripts/miscellaneous/methods.m

: m = methods (obj)
: m = methods (classname)
: m = methods (…, "-full")
: methods (…)

List the methods of an object or of the class called classname.

The result is a column cell array of names, sorted and without repeats. Without an output argument the names are printed. The option "-full" is accepted; it gives the same list.

The built-in value classes such as double or struct have no methods and give an empty cell array.