Compare two matrices and store the result in a matrix
<p>I have a 3x3 matrix.
say</p>

<pre><code>A=  2 7 5;
    1 8 2;
    3 6 2;
</code></pre>

<p>after some operation it reaches-</p>

<pre><code>B= -1 -1 0;
    0 -1-1;
   -1 -1 0;
</code></pre>

<p>I want to compare A and B with respect to "0" values of B.
And the output will be <code>C=5 1 2</code></p>

<p>Thanking </p>
