title: Weird result using `==` operator in MATLAB
body: <p>Im getting a really weird result using <code>==</code> in MATLAB_R2009b on OS X. Example from the prompt:</p>
  
  <pre><code>s =
       2
  &gt;&gt; class(s)
  ans =
  double
  &gt;&gt; class(s) == 'double'
  ans =
       1     1     1     1     1     1
  </code></pre>
  
  <p>Six times yes? Can anyone explain this || offer a solution?</p>