Sam Takoy
2010-07-17 12:16:34 UTC
Hi,
Given two matrices of equal height, what's the best way to combine them.
Here's what I did
TF[m_] := Flatten[Transpose[m]]
Combine[m1_, m2_] :=
Partition[Join[m1 // TF, m2 // TF], Length[m1]] // T
Surely there's a better way of doing it.
Thanks!
Given two matrices of equal height, what's the best way to combine them.
Here's what I did
TF[m_] := Flatten[Transpose[m]]
Combine[m1_, m2_] :=
Partition[Join[m1 // TF, m2 // TF], Length[m1]] // T
Surely there's a better way of doing it.
Thanks!