Re: How to create this kind of list
- To: mathgroup at smc.vnet.net
- Subject: [mg122130] Re: How to create this kind of list
- From: Mariano Pierantozzi <mariano.pierantozzi at gmail.com>
- Date: Sun, 16 Oct 2011 07:05:10 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201110151004.GAA03200@smc.vnet.net>
There's a lot of way to do this;
one could be:
a = {x1, x2, x3, x4};
b = {y1, y2, y3, y4};
c=Table[{a[[i]], b[[i]]}, {i, Length[a]}]
Best Regard
Pierantozzi Mariano
2011/10/15 Szymon Roziewski <szymon.roziewski at gmail.com>
> Hello there,
> I am thinking about creating such a list.
> I have 2 lists with the same number of elements.
> The idea is to create one list which was taken from these previous two ones
> in the following way:
> Take one element of the first list and one from another and put it into
> result list {{x1,y1},{x2,y2},...,{xn,yn}}.
> Input lists:
> A={x1,x2,...,xn}
> B={y1,y2,...,yn}
>
> All best,
> Szymon Roziewski
>
- References:
- How to create this kind of list
- From: Szymon Roziewski <szymon.roziewski@gmail.com>
- How to create this kind of list