Re: Merge of Matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg71129] Re: [mg71098] Merge of Matrices
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Thu, 9 Nov 2006 03:37:33 -0500 (EST)
- References: <200611081115.GAA22422@smc.vnet.net>
On Nov 8, 2006, at 6:15 AM, Robert Berger wrote:
> Hello!
>
> I like to create from the four matrices A (N1 rows and N1 columns),
> B (N1 rows and N2 columns), C (N2 rows and N1 columns),
> D (N2 rows and N2 columns) a new matrix X of the form
>
> A B
> X =
> C D
>
>
> Once A & B and C & D have been merged, the first (A & B) and the
> second row (C& D) can be merged in that way by applying Join, which is
> not a problem but how can I merge A & B (and of course C & D) in
> that way?
The easiest way is probably
<<LinearAlgebra`MatrixManipulation`
x=BlockMatrix[{{a,b},{c,d}}]
Regards,
Ssezi
- References:
- Merge of Matrices
- From: Robert Berger <rberger06@sinh.us>
- Merge of Matrices