Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

events - Event names

Syntax

events('classname')
events(obj)
e = events(...)

Description

events('classname') displays the names of the public events for the MATLAB class classname, including events inherited from superclasses.

events(obj) obj is a scalar or array of objects of a MATLAB class.

e = events(...) returns the event names in a cell array of strings.

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.

Examples

Get the names of the public events for the handle class:

events('handle')
Events for class handle:

    ObjectBeingDestroyed

See Also

methods | properties

Tutorials

  


Recommended Products

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