events( displays the names of the non-hidden, public events for the MATLAB® class
classname, including events inherited from superclasses.
events( displays the names of the public events for the class of
obj is an instance of a MATLAB class.
obj can be a scalar object or an array of objects.
Get Event Names from Class Name
Get the names of the public events of the handle class and store the result in a cell array of character vectors.
eventNames = events('handle');
List Object Events
List the events defined by the containers.Map class from an instance of this class.
m = containers.Map('May',70); events(m)
Events for class containers.Map: ObjectBeingDestroyed
ClassName — Class name
character vector | string scalar
Class name, specified as a character vector or string.
obj — Object
MATLAB object specified as a scalar object or an object array.
e — Event names
Event names contained in a cell array of character vectors.
An event is public when the value of its
ListenAccess attribute is
public and its
Hidden attribute value is
false (default values for both attributes). See Event Attributes for a complete list of attributes.
events is also a MATLAB class-definition keyword. See
classdef for more information on class definition keywords.
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Introduced in R2008a