https://nl.mathworks.com/help/driving/ref/groundtruthmultisignal.selectlabelsbylabelname.html
selectLabelsByLabelName - Select multisignal ground truth by label name - MATLAB
This MATLAB function selects labels specified by labelNames from a groundTruthMultisignal object, gTruth.
ground truthby labelselectnamematlab