Dear All; For a given Matrix (n : column, m : row) I want to trim [the 2, the 4 the 6 : paire column number] and find the index of min-max value in the reshaped (new) matrix, for example
A = 1 4 7 10 2 5 8 11 3 6 9 12
I trim the the 2 and the 4 column (keep the impair number ones)
B = 1 7 2 8 3 9Min_value = 1 (index Column =1 row = 1)Max_value = 9 (index Column =2 row = 3)
Or I trim the the 1 and the 3 column (keep the pair number ones)
C = 4 10 5 11 6 12Min_value = 4 (index Column =1 row = 1)Max_value = 12 (index Column =2 row = 3)
Best Answer