Skip to content

methods

List the methods of a class or object.

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

Returns a cell array of method names defined for the class. Pass an object or a class-name string. With '-full', includes inherited methods and method signatures.

methods('MException') % {'addCause', 'throw', ...}
  • class — Class name of an object.
  • properties — List the properties of a class or object.
  • events — List the events declared by a class.