https://it.mathworks.com/help/lidar/ref/lidarsensor-system-object.html
lidarSensor - Simulate lidar sensor readings - MATLAB
The lidarSensor System object simulates a lidar sensor mounted on an ego vehicle and outputs point cloud data for a given scene.
lidar sensorsimulatereadingsmatlab