title: inverse of randomly generated binary matrix in matlab
body: <p>I have generated binary non singular matrix of size 602*602</p>
  
  <pre><code>l = 602;
  w = round (rand (l,l));
  </code></pre>
  
  <p>now I want to find the inverse of this matrix in binary form, I tried this command</p>
  
  <pre><code> w_inv = mod(inv(w),2)
  </code></pre>
  
  <p>but the result is not in binary form. HELP!</p>