Create the appropriate type of class for your application:
Value classes enable you to create new array classes that have the same semantics as numeric classes.
Handle classes define objects that reference the
object. Copying an object creates another reference to the same object.
For a discussion of how object users work with handle objects, see Handle Object Behavior.
|Superclass of all handle classes|
|Provide handle classes with set and get methods|
|Require exact name match for set and get methods|
|Superclass for classes that support dynamic properties|
|Superclass providing copy functionality for handle objects|
|Create event listener bound to event source|
|Create event listener without binding to event source|
|Notify listeners that event is occurring|
|Delete handle object|
|Find handle objects|
|Find meta.property object|
|Determine valid handles|
|Determine equality or sort handle objects|
Value objects are associated with a specific variable. Handle objects can be referenced by multiple variables.
Whether you implement a handle or value class depends on what your class represents and how you want objects to behave.
MATLAB® handle variables support reference semantics.
Find objects using regular expressions or obtain the
meta.property object for specific properties.
Create a set/get interface for your handle class.
Customize object copy operations by deriving from the
Enable both handle and value classes to derive from a specific class.