This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Define and trigger events; create listeners that respond to events

Events are notices broadcast when some change or action occurs involving an object. Listeners define functions that execute when specific events occur. Classes can define and trigger events. MATLAB® can trigger predefined events when code accesses object properties.


events Event names
handle.notify Notify listeners that event is occurring
handle.addlistener Create event listener
event.hasListener Determine if listeners exist for event


event.EventData Base class for event data
event.listener Class defining listener objects
event.PropertyEvent Data for property events
event.proplistener Define listener object for property events
Was this topic helpful?