image thumbnail


version (4.53 KB) by Spencer Kellis
Convenience class for attaching custom data to MATLAB events.


Updated 20 Feb 2015

View License

This class implements the Mathworks suggestion for adding custom data to events (see It is intended to make custom event data more convenient. User-defined fields and values are provided as key-value pairs to the class constructor.
>> evt = Utilities.EventDataWrapper('key1',val1,'key2',val2,...);
>> notify(obj,'EventName',evt);

The download files include a complete example of an event with custom data.

Cite As

Spencer Kellis (2021). EventDataWrapper (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!