I have two vectors, one 12x1 and the other 2430x1. I want to take each element of the first vector and find which is the immediately after the matching element in the second vector, saving it in a third vector.
Example:
V1 = [1, 2, 3]
V2 = [1.2, 2.3, 2.5, 3.3, 3.4, 3.7 ......]
I would like to have the value for each V1
element immediately after each corresponding V2
element. I should then get
V3 = [1.2, 2.3, 3.3]
V2
alway sorted in accending order? – EBH