Re: Concatenate matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg51457] Re: [mg51404] Concatenate matrices
- From: Daohua Song <ds2081 at columbia.edu>
- Date: Sun, 17 Oct 2004 21:49:48 -0400 (EDT)
- References: <200410160820.EAA23680@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,Thomas,
You can try:
A=Partition[Range[9],3]
B=Partition[Range[6]+10,2]
Join[A[[#]],B[[#]]]&/@{1,2,3}//MatrixForm
Hope i am not misunderstanding.
Daohua
On Sat, 16 Oct 2004, Thomas Guignard wrote:
> Hi all
>
> Does somebody know if there's a simple function in mathematica to
> concatenate matrices?
>
> Example:
>
> / 1 2 3 \
> A = | 3 4 5 |
> \ 5 6 7 /
>
> / 11 12 \
> B = | 13 14 |
> \ 15 16 /
>
> I'd like to have
>
> / 1 2 3 11 12 \
> R = | 3 4 5 13 14 |
> \ 5 6 7 15 16 /
>
> And so on. See what I mean?
>
> Thanks a lot.
> T.
>
> --
> Thomas Guignard
> Laboratory of Electromagnetics and Acoustics
> Swiss Federal Institute of Technology, Lausanne
>
- References:
- Concatenate matrices
- From: Thomas Guignard <thomas.guignard@epfl.ch>
- Concatenate matrices