Re: Joining 2D arrays
- To: mathgroup at smc.vnet.net
- Subject: [mg49142] Re: [mg49131] Joining 2D arrays
- From: "Ravinder Kumar B." <ravi at crest.ernet.in>
- Date: Mon, 5 Jul 2004 04:54:21 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Following should work to join two lists:
Join[A,B] or
Append[A,B]
On Fri, 2 Jul 2004, Jonathan Greenberg wrote:
> This is a total newbie question, but if I have two table of a fixed number
> of columns and an arbitrary number of rows, whats the easiest/most efficient
> way to join them together (basically, how do I add entries to a "database"
> in Mathematica) -- that database will eventually be perhaps > 1,000,000
> entries long...
>
> A={{1,2},{3,4},{5,6}}
> B={{6,7},{8,9},{10,11},{12,13}}
>
> I want:
>
> {{1,2},{3,4},{5,6},{6,7},{8,9},{10,11},{12,13}}
>
> --j
>
--
Regards, Jul 2
Ravi
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Ravinder Kumar Banyal (SRF), |
| Indian Institute of Astrophysics, |
| Koramangala Bangalore - 560 034. INDIA |
| email : banyal at iiap.res.in, ravi at crest.ernet.in |
| Ph No : 080 25530672 (IIA) 080 7931972 (Hoskote)|
| 7931952 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Philosophers have interpreted the world in various ways, but the point is
to change it. --Karl Marx