Re: {x},{y} -> {x,y} ?
- To: mathgroup at smc.vnet.net
- Subject: [mg68257] Re: [mg68241] {x},{y} -> {x,y} ?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 31 Jul 2006 03:45:09 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
x=Range[5]; y=Range[5]; Thread[{x,y}] {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}} Transpose[{x,y}] {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}} Bob Hanlon ---- AngleWyrm <anglewyrm at yahoo.com> 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? >