MathGroup Archive 2004

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

Search the Archive

Re: Concatenate matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51428] Re: [mg51402] Concatenate matrices
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 17 Oct 2004 03:05:17 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Thomas,

Use the LinearAlgebra`MatrixManipulation` standard package.

Needs["LinearAlgebra`MatrixManipulation`"]

emat = Array[e, {3, 3}];
fmat = Array[f, {3, 2}];

AppendRows[emat, fmat]

or

BlockMatrix[{{emat, fmat}}]

With a little more work it can also be done outside of the package.

Join[Transpose[emat], Transpose[fmat]] // Transpose

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


From: Thomas Guignard [mailto:thomas.guignard at epfl.ch]
To: mathgroup at smc.vnet.net

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 /

Any ideas?

T.

-- 
Thomas Guignard
Laboratory of Electromagnetics and Acoustics
Swiss Federal Institute of Technology, Lausanne




  • Prev by Date: Re: Concatenate matrices
  • Next by Date: Re: Integrate vs. NIntegrate
  • Previous by thread: Re: Concatenate matrices
  • Next by thread: Re: Concatenate matrices