Hi,
You can use the uavScenerio feature in MATLAB to generate multi UAV as well as dynamic Obstacles. uavScenerio is the recommended way to Simulate UAVs in MATLAB.
You can have multiple platforms in the UAV scenario. As per your requirement, you assign them trajectories to simulate moving obstacles.
Hope this helps !!