Re: How can I make a relation between two lists
- To: mathgroup at smc.vnet.net
- Subject: [mg23681] Re: How can I make a relation between two lists
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 29 May 2000 12:24:09 -0400 (EDT)
- References: <8gsoou$eho@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
David, Transpose does it - this sort of thing is what the manipulation functions like Transpose, Reverse, RotateRight .... are about. x = {1, 2, 3}; y = {3, 2, 1}; Transpose[{x, y}] {{1, 3}, {2, 2}, {3, 1}} -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "Raul Hernandez M." <kyklos at data.net.mx> wrote in message news:8gsoou$eho at smc.vnet.net... > Hi, I hope someone can help me. I've been looking for a function that can > relate two or most lists to obtain a date, for example: > > x={1,2,3} > y={3,2,1} > > I want something that establish that data like: > > { {1,3}, {2,2}, {3,1} } > > > Cause I've been doing this, typing every pair of data. > > > thanks in advance > > DAVID > > >