title: Appending "in a way" multiple matrices
body: <p>Say I have matrices A and B. I want to create a third matrix C where</p>
  
  <pre><code>A = [1,0,0,1]
  
  B = [1,0,1,0]    
  
  C = [11, 00, 01, 10] 
  </code></pre>
  
  <p>Is there such a function in Matlab? If not how would I go about creating a function that does this? </p>
  
  <p>Edit: C is not literal numbers. They are concatenated values of A,B element-wise.</p>
  
  <p>Edit2: The actual problem I am dealing with is I have 10 large matrices of the size [x,y] where x,y > 1000. The elements in these matrices all have 0s and 1s. No other number. What I need to accomplish is have the element [x1,y1] in matrix 1 to be appended to the element in [x1,y1] of matrix 2. and then that value to be appended to [x1,y1] of matrix 3. </p>
  
  <p>Another example:</p>
  
  <pre><code>A = [1,1,1,1;
       0,0,0,0]
  
  B = [0,0,0,0;
       1,1,1,1]
  
  C = [1,0,1,0;
       0,1,0,1]
  </code></pre>
  
  <p>And I need a matrix D where</p>
  
  <pre><code>D = [101, 100, 101, 101; 010, 011, 010, 011]
  </code></pre>