MathGroup Archive 2010

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

Search the Archive

Combine matrices of equal height

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111022] Combine matrices of equal height
  • From: Sam Takoy <sam.takoy at yahoo.com>
  • Date: Sat, 17 Jul 2010 08:16:13 -0400 (EDT)

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