Skip to content

properties

List the properties of a class or object.

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

Returns a cell array of property names defined on the class. Same arguments as methods.

properties('MException') % {'identifier', 'message', 'stack', 'cause'}
  • methods — List the methods of a class or object.
  • class — Class name of an object.
  • fieldnames — List of field names in a structure.