There are blocks like "sub-models" in Simlink that can contain other blocks.
There are also special blocks that could contain your Matlab written algorithms like "MEX-function" or "S-function"
actually i want to implement a scheduling algorithm
The voice is modeled as an ON-OFF
process, where the average duration of ON and OFF periods
are set to 2.5 and 0.5 seconds, respectively. During an ON
period, packets are generated with fixed intervals. No packet
is generated during an OFF period. In a video traffic, packets
arrive in a Poission fashion. The last four flows are nonreal-
time FTP flows, and their traffics are modeled as greedy
sources whose queues are never empty.
these all are inputs to my algo.
i implemented the scheduling algorithm in MATLAB
but these event-driven simulation is not possible .
i want to get fairness. so i have to implement my algo. like
event-driven simulation.