Hey Huw,
I understand that you want to simulate traffic for both eMBB and uRLLC services to simulate and test resource allocation.
While there is no readymade example for the query you are looking at, you can have a look at some of the MathWorks resources mentioned below to get you started.
- https://www.mathworks.com/matlabcentral/fileexchange/119923-communications-toolbox-wireless-network-simulation-library
- For 5G system level simulations , you can use : https://www.mathworks.com/help/5g/examples.html?category=system-level-simulation&s_tid=CRUX_topnav
You can also look at some specific pages as well as there is some useful detail here that is often missed (although these are present right there in 5G System Level Simulation)
- Composition of NR nodes - MATLAB & Simulink (mathworks.com)
- Communication Between gNB and UE Nodes - MATLAB & Simulink (mathworks.com)
- Working of Wireless Network Simulator - MATLAB & Simulink (mathworks.com)
Hope this helps!
Regards,
Ayush Goyal