Describe event of MATLAB class
meta.event class provides information
about MATLAB® class events. The read/write properties of the
correspond to event attributes and are specified only from within
You can query the read-only properties of the
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
directly. Obtain a
meta.event object from the
which contains an array of
one for each event defined by the class. For example, replace
the name of the class whose events you want to query:
mco = ?ClassName; elist = mco.EventList; elist(1).Name; % name of first event in list
to obtain a
meta.class object from a class instance:
mco = metaclass(obj);
Name of the event.
Currently not used.
Currently not used
Determines where you can create listeners for the event.
Determines where code can trigger the event.