Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

RE: Joining 2D arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49140] RE: [mg49131] Joining 2D arrays
  • From: "Owen, HL (Hywel)" <H.L.Owen at dl.ac.uk>
  • Date: Mon, 5 Jul 2004 04:54:19 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Join[A,B]

Also look at Append and AppendTo, and look at the functions above and below
Join in the help menu.

Cheers,

Hywel

> -----Original Message-----
> From: Jonathan Greenberg [mailto:greenberg at ucdavis.edu]
To: mathgroup at smc.vnet.net
> Sent: 02 July 2004 07:02
> To: mathgroup at smc.vnet.net
> Subject: [mg49140] [mg49131] Joining 2D arrays
> 
> 
> 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
> 


  • Prev by Date: RE: Joining 2D arrays
  • Next by Date: Re: DSolve question
  • Previous by thread: RE: Joining 2D arrays
  • Next by thread: Re: Joining 2D arrays