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: [mg116312] Re: list manipulation
  • From: Matthias Bode <lvsaba at hotmail.com>
  • Date: Fri, 11 Feb 2011 04:11:57 -0500 (EST)

Hola Andrea,

please try:

In[1]:= lst01 = {1, 2, 3, 4, 5};
lst02 = {a, b, c, d, e};
lst03 = Table[{lst01[[n]],
       lst02[[n]]}, {n, 1, 5}]

Out[3]= {{1, a}, {2, b}, {3, c}, {4, d},
   {5, e}}

Best regards,

MATTHIAS BODE
S 17.35775=B0, W 066.14577=B0
2'740 m
AMSL.
 > Date: Thu, 10 Feb 2011 05:19:50 -0500
> From: andrea.dellapatria at gmail.com
> Subject: [mg116285] list manipulation
> To: mathgroup at smc.vnet.net
>
> 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
>
 		 	   		 


  • Prev by Date: Re: list manipulation
  • Next by Date: Re: Mathematica 8 install - ListPlot not working
  • Previous by thread: Re: list manipulation
  • Next by thread: Re: list manipulation