MathGroup Archive 2004

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

Search the Archive

Re: Concatenate matrices


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
>


  • Prev by Date: Re: viewing 3D surfaces
  • Next by Date: Re: viewing 3D surfaces
  • Previous by thread: Re: Concatenate matrices
  • Next by thread: Concatenate matrices