I am comparing arrays and need to take values from array A and find the index of the matching value or next lower value in array B. B is ordered if that helps the solution. So using LOC would give the the index of the exact match, but if there isn't an exact match, I want the next lower value. A = {10, 3, 19} B= {1, 3, 7, 42} Wanted Result = {3, 2, 3}
... View more