title: Intersect two arrays with tolerance
body: <p>I have 2 arrays of data, from which I want to extract common elements. Matlab's <code>intersect</code> does this job. But it returns elements that are exactly the same. What if I want to extract elements with some tolerance? Say for e.g </p>
  
  <pre><code>A = [1 2 3.0002 4.125 5.89]; 
  B = [2 3.012 4.126]
  </code></pre>
  
  <p>I want to extract elements that are same up to 2 decimal places. So I want the answer to be <code>[2 4.12]</code> . Is there any built-in function to do this? Or How do I achieve this?</p>