Mathematica 9 is now available
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: [mg116357] Re: list manipulation
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Fri, 11 Feb 2011 04:20:04 -0500 (EST)
  • References: <ij0e3h$98o$1@smc.vnet.net>

Andrea 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
>

Try:

Transpose[{list1,list2}]


-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: list manipulation
  • Next by Date: Re: print issues
  • Previous by thread: Re: list manipulation
  • Next by thread: Re: list manipulation