| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
| On this page… |
|---|
The following table lists the attributes you can set for events. To specify a value for an attribute, assign the attribute value on the same line as the event key word. For example, all the events defined in the following events block have private ListenAccess and NotifyAccess attributes.
events (ListenAccess = 'private', NotifyAccess = 'private') anEvent anotherEvent end
To define other events in the same class definition that have different attribute settings, create another events block.
| Attribute Name | Class | Description |
|---|---|---|
| Hidden | logical Default = false | If true, event does not appear in list of events returned by events function (or other event listing functions or viewers). |
ListenAccess | enumeration Default = public | Determines where you can create listeners for the event.
|
| NotifyAccess | enumeration Default = public | Determines where code can trigger the event
|
![]() | Events and Listeners — Concepts | Defining Events and Listeners — Syntax and Techniques | ![]() |

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 |