MathGroup Archive 2004

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

Search the Archive

Re: Joining 2D arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49156] Re: Joining 2D arrays
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Mon, 5 Jul 2004 04:54:48 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/2/04 at 2:01 AM, greenberg at ucdavis.edu (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}}

Join[A, B]
{{1, 2}, {3, 4}, {5, 6}, {6, 7}, {8, 9}, {10, 11}, {12, 13}}
--
To reply via email subtract one hundred and four


  • Prev by Date: Changing the Natural Sort Order
  • Next by Date: Re: Joining 2D arrays
  • Previous by thread: Re: Joining 2D arrays
  • Next by thread: Re: Joining 2D arrays