Re: Concatenate matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg51482] Re: Concatenate matrices
- From: Roland Franzius <roland.franzius at uos.de>
- Date: Tue, 19 Oct 2004 02:56:02 -0400 (EDT)
- Organization: Universitaet Hannover
- References: <ckqmb1$nb0$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Thomas Guignard wrote: > Hi all > > Does someone know if there is a function in Mathematica to simply > concatenate matrices (provided their dimensions are right). > > Example: > > / e11 e12 e13 \ > E = | e21 e22 e23 | > \ e31 e32 e33 / > > / f11 f12 \ > F = | f21 f22 | > \ f31 f32 / > > I'd like to have: > > / e11 e12 e13 f11 f12 \ > R = | e21 e22 e23 f21 f22 | > \ e31 e32 e33 f31 f32 / Consider Transpose. A = Table[Subscript[a,i + 10 k] , {i, 1, 2}, {k, 1, 3}] B = Table[Subscript[b,i + 10 k] , {i, 1, 2}, {k, 1, 2}] cc = Flatten/@ Transpose[{A,Transpose[B]}] -- Roland Franzius