Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15823 > unrolled thread

Re: list manipulation

Started byRuth Lazkoz Sáez <ruth.lazkoz@ehu.es>
First post2011-02-11 09:15 +0000
Last post2011-02-11 09:15 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: list manipulation Ruth Lazkoz Sáez <ruth.lazkoz@ehu.es> - 2011-02-11 09:15 +0000

#15823 — Re: list manipulation

FromRuth Lazkoz Sáez <ruth.lazkoz@ehu.es>
Date2011-02-11 09:15 +0000
SubjectRe: list manipulation
Message-ID<ij2un6$7ld$1@smc.vnet.net>
Hi,

Once you have defined

list1={x1,x2,...,xN}; list2={y1,y2,...,yN};

one possibility is
Partition[Riffle[list1, list2], 2];

Another is

{list1[[#]], list2[[#]]} & /@ Range[Length[list1]]

Probably you will get a dozen alternative answers.

Best,

Ruth



[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web