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


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

Re: list manipulation

Started byNicholas Goble <ngoble@iwu.edu>
First post2011-02-12 10:17 +0000
Last post2011-02-12 10:17 +0000
Articles 1 — 1 participant

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


Contents

  Re: list manipulation Nicholas Goble <ngoble@iwu.edu> - 2011-02-12 10:17 +0000

#15643 — Re: list manipulation

FromNicholas Goble <ngoble@iwu.edu>
Date2011-02-12 10:17 +0000
SubjectRe: list manipulation
Message-ID<ij5mn0$jgh$1@smc.vnet.net>
You could try a "brute force" method:

list3={};
For{i=1, i<=Length[list1], i++,
   AppendTo[list3, {list1[[i]], list2[[i]]}]
];

Nicholas Goble

On 2/10/11 4:19 AM, "Andrea" <andrea.dellapatria@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
> 
> 


[toc] | [standalone]


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


csiph-web