MathGroup Archive 2011

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

Search the Archive

Re: list manipulation


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