MathGroup Archive 2011

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

Search the Archive

Re: list manipulation


On 10 f=E9v, 11:19, Andrea <andrea.dellapat... at gmail.com> wrote:
> hello, I need help about the following question:
>
> I have two N-dimensional lists:
>
> list1={x1,x2,...,xN}     list2={y1,y2,...,yN}
>
> How to create the N-dimrnsional list: list3={{x1,y1},{x2,y2},...,
> {xN,yN}} ?
>
> I've tried so hard but I didn't work it out!
>
> Tanks in advance for your support
>
> Andrea
Hi Andrea,
Hope this helps:
 Transpose[{{x1, x2, x3} , {y1, y2, y3}}]

gives the output  {{x1, y1}, {x2, y2}, {x3, y3}}


  • Prev by Date: ContourPlot confusion
  • Next by Date: Re: list manipulation
  • Previous by thread: Re: list manipulation
  • Next by thread: Re: list manipulation