MathGroup Archive 2004

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

Search the Archive

Re: Concatenate matrices


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