MathGroup Archive 2009

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

Search the Archive

Re: Matrix construction


Thank you all for your help~
Best regards!

Haibo

On Wed, Jun 24, 2009 at 3:57 AM, Murray Eisenberg <murray at math.umass.edu>wrote:

>  A = Array[a, {3, 2}]; B = Array[b, {3, 4}];
>  G = Array[g, {3, 2}]; H = Array[h, {3, 4}];
>
>  (* brute force joining *)
>  Join[Join[A, G], Join[B, H], 2]
>
>  (* using a more specialized function *)
>  ArrayFlatten[{{A,B},{G,H}}]
>
>
> Haibo Min wrote:
>
>>
>> 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?
>>
>
> --
> Murray Eisenberg                     murray at math.umass.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower      phone 413 549-1020 (H)
> University of Massachusetts                413 545-2859 (W)
> 710 North Pleasant Street            fax   413 545-1801
> Amherst, MA 01003-9305
>


  • Prev by Date: Re: Re: from the list select
  • Next by Date: Re: For loops with mathematica....
  • Previous by thread: Re: Matrix construction
  • Next by thread: Re: Matrix construction