| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
The meta.event class provides information about MATLAB class events. The read/write properties of the meta.event class correspond to event attributes and are specified only from within class definitions.
You can query the read-only properties of the meta.event object to obtain information that is specified syntactically by the class (for example, to obtain the name of the class defining the event).
You cannot instantiate a meta.event object directly. Obtain a meta.event object from the meta.class Events property, which contains a cell array of meta.event objects, one for each event defined by the class. For example:
mco = ?classname;
eventcell = mco.Events;
eventcell{1}.Name; % name of first event
Use the metaclass function to obtain a meta.class object from a class instance:
mco = metaclass(obj);
| Property | Purpose |
|---|---|
| Name read only | Name of the event. |
| Description read only | Currently not used |
| DetailedDescription read only | Currently not used |
| Hidden | If true, the event does not appear in the list of events returned by the events function (or other event listing functions or viewers) |
| ListenAccess | Determines where you can create listeners for the event.
|
| NotifyAccess | Determines where code can trigger the event.
|
| DefiningClass | The meta.class object representing the class that defines this event. |
meta.class, meta.property, meta.method, metaclass
Events — Sending and Responding to Messages
Obtaining Information About Classes with Meta-Classes
![]() | meta.DynamicProperty | meta.method | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |