How to subset a matrix with different column positions for each row? [duplicate]

Leave a Comment