notify
NOTIFY Notify listeners of a classdef handle event (MATLAB compat).
notify (obj, EVENTNAME) notify (obj, EVENTNAME, EVENTDATA)
OBJ must be a handle object. EVENTNAME must be declared on the class (see events). Without EVENTDATA, listeners receive an event.EventData naming the source and event; otherwise they receive EVENTDATA.
MATLAB implements notify as a method of handle. When this path function is selected, it validates arguments then calls the handle method so the C++ listener registry runs. Method-call form obj.notify (...) reaches that method directly.
Decisions (MATLAB R2026a, measured): - notify is a handle method. notify(nonHandle, ...) is MATLAB:UndefinedFunction (not MustBeHandle). This path file only runs when method dispatch does not claim the call. - Deleted handle → MATLAB:class:InvalidHandle - Unknown event → MATLAB:class:invalidEvent (when events() lists names). Prefer the C++ handle.notify check; keep the same id here for the rare path where this .m runs ahead of the method.