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


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

Re: list manipulation

From Ruth Lazkoz Sáez <ruth.lazkoz@ehu.es>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: list manipulation
Date 2011-02-11 09:15 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ij2un6$7ld$1@smc.vnet.net> (permalink)

Show all headers | View raw


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



Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web