Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15826 > unrolled thread

Re: list manipulation

Started byMatthias Bode <lvsaba@hotmail.com>
First post2011-02-11 09:12 +0000
Last post2011-02-11 09:12 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: list manipulation Matthias Bode <lvsaba@hotmail.com> - 2011-02-11 09:12 +0000

#15826 — Re: list manipulation

FromMatthias Bode <lvsaba@hotmail.com>
Date2011-02-11 09:12 +0000
SubjectRe: list manipulation
Message-ID<ij2uhs$7g5$1@smc.vnet.net>
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@gmail.com
> Subject:  list manipulation
> To: mathgroup@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
>
 		 	   		 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web