0

A = [[1 2], [ 3 4]] (order is 2x2)

B = [[5 6], [ 7 8]] (order is 2x2)

C = [[1 5 2 6], [3 7 4 8]] (order is 2x4)

Above is a specific example. Generally, I have two integer matrices of 120x6 and after concatenation, I need a 120x12 single matrix but it should be element-wise as in the above example.

I tried concat and hstack functions but couldn't get the desired result.

0 Answers0