Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: list manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116328] Re: list manipulation
  • From: Ruth Lazkoz Sáez <ruth.lazkoz at ehu.es>
  • Date: Fri, 11 Feb 2011 04:14:49 -0500 (EST)

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





  • Prev by Date: Re: plotting a curve in 3D from data
  • Next by Date: Re: Integrate this how?
  • Previous by thread: Re: list manipulation
  • Next by thread: Re: list manipulation