https://ch.mathworks.com/help/simevents/ref/matlab.discreteeventsystem.initeventarray.html
matlab.DiscreteEventSystem.initEventArray - Initialize event array - MATLAB
This MATLAB function creates an empty array of event structures, to initialize the return of an event action method such as matlab.DiscreteEventSystem.entry.
matlabinitializeeventarray