We have a 111×1402 array A with one or no logical true for each column.
E.g.:
0 0 1 0 ...1 0 0 00 1 0 1...
Now we want to get the values for each of the 1402 columns from another array B which is 111×2.
Meaning the row of the 111 where there is a logical true in array A.
E.g.:
500 142450 -12305 125 . . . . . .
How can we achieve this in Matlab?
Best Answer