matchpairs
MATCHPAIRS Solve linear assignment for a cost matrix (MATLAB R2019a+ compat). GitLab #250 M = matchpairs (Cost, costUnmatched) [M, uR, uC] = matchpairs (...) Returns Mx2 integer pairs [row, column] of matched entries. Rows or columns may remain unmatched when their best match exceeds costUnmatched.