Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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
>


  • 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