| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
events('classname')
events(obj)
e = events(...)
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.
Get the names of the public events for the handle class:
events('handle')
Events for class handle:
ObjectBeingDestroyed
![]() | eventlisteners | events (COM) | ![]() |

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 |