MathGroup Archive 2006

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

Search the Archive

Re: {x},{y} -> {x,y} ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68264] Re: {x},{y} -> {x,y} ?
  • From: "sashap" <pavlyk at gmail.com>
  • Date: Mon, 31 Jul 2006 03:45:19 -0400 (EDT)
  • References: <eaht5b$or5$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use either of these

In[7]:=
Thread[{{x1,x2,x3},{y1,y2,y3}}]

Out[7]=
{{x1,y1},{x2,y2},{x3,y3}}

In[8]:=
Transpose[{{x1,x2,x3},{y1,y2,y3}}]

Out[8]=
{{x1,y1},{x2,y2},{x3,y3}}

Oleksandr Pavlyk,
Wolfram Research

AngleWyrm wrote:
> Hi,
> I have two lists, a set of x values and a set of y values. How do I convert
> them to one list of { {x1,y1},{x2,y2} } pairs?


  • Prev by Date: Re: {x},{y} -> {x,y} ?
  • Next by Date: Re: Replacing Numbers in a List
  • Previous by thread: Re: {x},{y} -> {x,y} ?
  • Next by thread: Re: {x},{y} -> {x,y} ?