Hello,
I have an matrix, which have repeated values at row 8, I want to choose the row with maximum value in elements in column 4 and discard the rows with repeated value in column 8.
A= [1973 2 12 0.89518 1973 2 14 14681973 4 3 1.1867 1973 3 24 19031973 10 21 1.1006 1973 10 24 13071973 11 6 0.91814 1973 11 3 19131973 11 13 0.9313 1973 11 3 19131973 11 19 1.2501 1973 11 9 16181973 11 25 1.1185 1973 12 1 29531973 12 7 1.3553 1973 12 1 2953];
I would like to delete 4th & 7th row in this case. The desired output is:
1973 2 12 0.89518 1973 2 14 14681973 4 3 1.1867 1973 3 24 19031973 10 21 1.1006 1973 10 24 13071973 11 13 0.9313 1973 11 3 19131973 11 19 1.2501 1973 11 9 16181973 12 7 1.3553 1973 12 1 2953Any help?
Best Answer