https://nl.mathworks.com/help/fusion/ref/assignkbestsd.html
assignkbestsd - K-best S-D solution that minimizes total cost of assignment - MATLAB
This MATLAB function returns a table of assignments of detections to tracks by finding the best S-D solution that minimizes the total cost of the assignments.