https://se.mathworks.com/help/lidar/ref/groundtruthlidar.selectlabelsbytype.html
selectLabelsByType - Select ground truth data by label type - MATLAB
This MATLAB function selects labels of the types specified by labelTypes from a groundTruthLidar object gTruth.
ground truthby labelselectdatatype