Find a certain number in a vector based on conditions
So I have a vector(A) of distances. I have a vector(B) of ranges. These ranges(B) are not equivalent to the size of the vector(A). I want to find the location of each range in the vector that corresponds to each distance value. Like if a distance is within the range. The range(B) is something like (m by 2) and the distances(A) are (n by 1)So I have a vector(A) of distances. I have a vector(B) of ranges. These ranges(B) are not equivalent to the size of the vector(A). I want to find the location of each range in the vector that corresponds to each distance value. Like if a distance is within the range. The range(B) is something like (m by 2) and the distances(A) are (n by 1) So I have a vector(A) of distances. I have a vector(B) of ranges. These ranges(B) are not equivalent to the size of the vector(A). I want to find the location of each range in the vector that corresponds to each distance value. Like if a distance is within the range. The range(B) is something like (m by 2) and the distances(A) are (n by 1) find, vector MATLAB Answers — New Questions