Hi, I have a matrix of values shown below. I want to keep the lower value in each row, unless that lower value is repeated in another row of the matrix. For the matrix shown below, the retained values should be 7, 9, 14, 22, 24, 27, 29, 35, 30, 34, 38, and 44. My first thought was the unique function, but that then prevents me from selecting the min value per row. Thanks in advance for the help.
A = [1 21 32 35 63 72 83 88 95 106 1010 1211 1312 1511 1613 1615 2014 2122 2824 3120 3227 3329 3432 3530 3634 4238 4340 4840 4948 4944 50];
Best Answer