title: How do I make a matrix from multiple lists of matrices?
body: <p>Hi I am trying to figure out how to create a matrix from other matrices.
  I have created 3 matrixes from certain calculations and have arrived at 3 matrices of shape (1200,3) each. 1200 represents the rows of number of data set. What I want to extract from each of this Matrix (A, B, C) is to put them in this order for the first of 1200 data points:</p>
  <pre><code>[[A[0][0], B[0][0], C[0][0]],    
   [A[0][1], B[0][1], C[0][1]],    
   [A[0][2], B[0][2], C[0][2]]]
  </code></pre>
  <p>This is what I have written so far:</p>
  <pre><code>def getRotationMatrix(acc_x_sample, acc_y_sample, acc_z_sample, mag_x_sample, mag_y_sample, mag_z_sample):
      a = np.transpose(np.array([acc_x_sample,acc_y_sample,acc_z_sample]))
      m = np.transpose(np.array([mag_x_sample,mag_y_sample,mag_z_sample]))
  
      B = np.cross(a,m) # (a x m)
      A = np.cross(B,a) 
      C = a
  
      R =[]
      for i in range(2):
          R.append(A[i],B[i],C[i])
      return R
  </code></pre>