title: Matlab script does not evaluate valid if construction
body: <p>I have a 2D point <code>vectorA</code> and a rectangle with boundaries <code>vectorX</code> and <code>vectorY</code>. Following MWE represents my MATLAB code to check whether the point lies on the four consecutive boundaries:</p>
  
  <pre><code>vectorA=[1.6667 2];
  vectorX=[0 1.6667];
  vectorY=[2 3.3333]
  if vectorA(1)==vectorX(1)
      disp('XL')
  end
  if vectorA(1)==vectorX(2)
      disp('XU')
  end
  if vectorA(2)==vectorY(1)
      disp('YL')
  end
  if vectorA(2)==vectorY(2)
      disp('YU')
  end
  </code></pre>
  
  <p>I encountered a case for which the function did not detect that a given coordinate lied on a boundary. I printed the internal values of the variables and although I had <code>if 1.6667==1.6667</code>, that <code>if</code> was not evaluated.</p>
  
  <p>Manually executing the consecutive calculations of my script works fine (including <code>1.6667==1.6667</code> which yields <code>1</code>), but executing the script gives a wrong result. Where can I search for the reason for this strange behaviour?</p>