title: Change tolerance in array comparison
body: <p>I have the following issue. I have to compare an array of floating point numbers (A) with a variable (B). Such as</p>
  
  <pre><code>A = [0.0032,  0.12 , 0.53 1.43]
  B = 0.00321
  </code></pre>
  
  <p>But in this case, B is slightly different from A(1). Not using a for, how can I set the tolerance and get a result such as:</p>
  
  <pre><code>ans = [1 0 0 0]
  </code></pre>