MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Combine matrices of equal height


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!


  • Prev by Date: Re: Hatched shading?
  • Next by Date: Percentage Formating
  • Previous by thread: Re: Hatched shading?
  • Next by thread: Re: Combine matrices of equal height