Programming > Classes
28 functions in MATLAB › Programming > Classes.
Define Classes
addlistener | Attaches a callback to an event or property change of a handle object. |
enumeration | Lists the members of an enumeration class. |
eq | Equality test, the function form of the == operator. |
event.hasListener | Tests whether an event of an object has listeners. |
events | Lists the events defined by a class. |
import | Adds a package or class name to the import list so it can be used with a short name. |
ismethod | Tests whether an object has a method of a given name. |
isprop | Tests whether an object has a property of a given name. |
listener | Creates an event listener without attaching it to the life of the source object. |
methods | Lists the methods of a class or object. |
notify | Triggers an event of a handle object and runs the listeners attached to it. |
properties | Lists the public properties of a class or object. |
superclasses | Lists the superclasses of a class, from the nearest to the farthest. |
Class Customization
builtin | Calls the built-in version of a function, ignoring any overriding file. |
numArgumentsFromSubscript | Method a class can overload to say how many outputs an indexing expression returns. |
subsasgn | Assignment through an index structure, the function behind A(i) = v, A.f = v and A{i} = v. |
subsindex | Method a class overloads so that its objects can be used as array indices. |
subsref | Reads through an index structure, the function behind A(i), A.f and A{i}. |
substruct | Builds the index structure expected by subsref and subsasgn. |
System Objects
clone | Creates an independent copy of a System object. |
isDone | Tests whether a System object has finished producing data. |
isLocked | Tests whether a System object, or a function, is locked. |
release | Releases the resources of a System object and unlocks it. |
setup | Prepares a System object for execution, locking it, before the first call to step. |
step | Runs one processing step of a System object. |
Construct and Work with Object Arrays
empty | Creates an empty array of a given class. |
Class Introspection and Metadata
meta.class.fromName | Returns the meta.class object that describes a class, given its name. |
metaclass | Returns the meta.class object that describes the class of an object. |