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

MathGroup Archive 1997

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

Search the Archive

combining lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5698] combining lists
  • From: TTCJ34A at prodigy.com (DR JOHN C ERB)
  • Date: Sat, 11 Jan 1997 14:29:01 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

>I have two lists, x and y, each containing n elements. I would like 
to
>generate a new list, {{x[[1]],y[[1]]}, {x[[2]],y[[2]]},...
>{x[[n]],y[[n]]}}, but have been unable to figure out a shorthand for 
it.
>Any help would be much appreciated.

Try
x={1,3,5};
y={2,4,6};
xy=Transpose[{x,y}]

John C. Erb


  • Prev by Date: GroebnerBasis
  • Next by Date: Re: Noah's List
  • Previous by thread: Re: Re: GroebnerBasis
  • Next by thread: Image Processing: Mathematica?