title: How to compare two vectors element by element?
body: <p>I have two matrices: <code>A=[1,2,3,4,5]</code> and <code>B=[1,2,3,4,6]</code>. I need to compare elements of those matrix, and as a result I need to have binary matrix 
  <code>Result=[1,1,1,1,0]</code>, that means if <code>A(i)==B(i)</code> then <code>Result(i)=1</code> else  <code>Result(i)=0</code>. </p>
  
  <p>I have tried with:</p>
  
  <pre><code>if (isequal (A,B))
     Result=1
  else
     Result=0
  end
  </code></pre>
  
  <p>I have tried: <code>Result=sign(A,B)</code></p>
  
  <p>I hope that you could help me please? </p>