I have this code:
A = 1 2 3 4 5 6 7 8 9 1 1 1 1 1 2 3 4 5 6 7 8 9 1 1 1 9 1 2 3 4 5 6 7 8 9 1 1 2 3 1 2 3 4 5 6 7 8 9 1 1 1 1 1 2 3 4 5 6 7 8 9 1 1 1 5 1 2 3 4 5 6 7 8 9 1 1 1 3 1 2 3 4 5 6 7 8 9 1 1 2 3B = min(A')B = 1 1 1 1 1 1 1index = find(A'==B, 1, 'last')index = 89
What I want is to get the indices of the smallest number starting from the end of each row. The answer should look like this
index =13 12 11 13 12 12 11
Thanks, George.
Best Answer