Finding index of specific values in matrix
<p>In example matrix</p>

<pre><code>a1=[1;1;1;2;2];
b1=[1;1;2;2;2];
</code></pre>

<p>Can I compare <code>a1</code> and <code>b1</code> matrix, which is equal  in the case of 1 value in <code>a1</code> matrix?</p>

<p>target matrix </p>

<pre><code>c1=[1,1,0,0,0];
</code></pre>