Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Matrix construction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101109] Re: [mg101059] Matrix construction
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 24 Jun 2009 06:33:03 -0400 (EDT)
  • References: <3777634.1245755466798.JavaMail.root@n11>

At first, it is a little difficult to pick it out in Help, but what you want
is the Version 6 routine ArrayFlatten.

amat = Array[a[#1, #2] &, {2, 2}];
bmat = Array[b[#1, #2] &, {2, 3}];
cmat = Array[c[#1, #2] &, {3, 2}];
dmat = Array[d[#1, #2] &, {3, 3}];

{{amat, bmat}, {cmat, dmat}} // ArrayFlatten // MatrixForm


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: Haibo Min [mailto:yshdfeng at gmail.com] 


Hi, everyone.
I know that matrix can be constructed via Table or Array, but I want to
construct a matrix from other matrices, how to do it?
For example, suppose I would like to construct a matrix M which is composed
of four matrices, A,B,C,D.  The element corresponding to the first row and
the first column is A, the first row and second column is B...
I used the M={{A,B},{C,D}} and M={A,B,C,D}, but both of them didn't  work.
How?
Thanks for advance.

Best Regards,
Haibo





  • Prev by Date: Re: For loops with mathematica....
  • Next by Date: Re: Re: Two questions about modification of a matrix.
  • Previous by thread: Re: Matrix construction
  • Next by thread: Re: Matrix construction