title: Create matrix with random binary element in matlab
body: <p>I want to create a matrix in matlab with 500 cell (50 row,10 column ), How I can create and initialize it by random binary digits?
   I want some thing like this in 50*10 scale
  as sample 3*4 </p>
  
  <p>0   1    1     1<br>
  0   0    0     0<br>
  1   1    1     1</p>
  
  <p>and after it, how can get decimal equation of any row ? like row 1 is equal 7 in decimal</p>