Programming > Classes

28 functions in MATLAB › Programming > Classes.

Define Classes

addlistenerAttaches a callback to an event or property change of a handle object.
enumerationLists the members of an enumeration class.
eqEquality test, the function form of the == operator.
event.hasListenerTests whether an event of an object has listeners.
eventsLists the events defined by a class.
importAdds a package or class name to the import list so it can be used with a short name.
ismethodTests whether an object has a method of a given name.
ispropTests whether an object has a property of a given name.
listenerCreates an event listener without attaching it to the life of the source object.
methodsLists the methods of a class or object.
notifyTriggers an event of a handle object and runs the listeners attached to it.
propertiesLists the public properties of a class or object.
superclassesLists the superclasses of a class, from the nearest to the farthest.

Class Customization

builtinCalls the built-in version of a function, ignoring any overriding file.
numArgumentsFromSubscriptMethod a class can overload to say how many outputs an indexing expression returns.
subsasgnAssignment through an index structure, the function behind A(i) = v, A.f = v and A{i} = v.
subsindexMethod a class overloads so that its objects can be used as array indices.
subsrefReads through an index structure, the function behind A(i), A.f and A{i}.
substructBuilds the index structure expected by subsref and subsasgn.

System Objects

cloneCreates an independent copy of a System object.
isDoneTests whether a System object has finished producing data.
isLockedTests whether a System object, or a function, is locked.
releaseReleases the resources of a System object and unlocks it.
setupPrepares a System object for execution, locking it, before the first call to step.
stepRuns one processing step of a System object.

Construct and Work with Object Arrays

emptyCreates an empty array of a given class.

Class Introspection and Metadata

meta.class.fromNameReturns the meta.class object that describes a class, given its name.
metaclassReturns the meta.class object that describes the class of an object.