<div dir="ltr">Hi all,<div><br></div><div>Is it possible to use one vector to find only those closest values in another vector with a tolerance limit?</div><div><br></div><div>A=[2 3 4 5 6]; // source array <br></div><div>B=[0.25 1.2 2.01 5.2 7.4 9.3 10.6 ]; // target array to find closest values to A<br></div><div><br></div><div>So in the example above, the closest values would be 2.01 and 5.2 in B, all other values excluded. Arrays are not going to be the same size! Hopefully I have explained it well enough.</div><div><br></div><div>Thanks</div><div>Lester</div><div><br></div></div>