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


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

Re: list manipulation

Started byPeter Breitfeld <phbrf@t-online.de>
First post2011-02-11 09:20 +0000
Last post2011-02-12 10:17 +0000
Articles 2 — 2 participants

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: list manipulation Peter Breitfeld <phbrf@t-online.de> - 2011-02-11 09:20 +0000
    Re: list manipulation Andrea <andrea.dellapatria@gmail.com> - 2011-02-12 10:17 +0000

#15597 — Re: list manipulation

FromPeter Breitfeld <phbrf@t-online.de>
Date2011-02-11 09:20 +0000
SubjectRe: list manipulation
Message-ID<ij2v0q$7vj$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

[toc] | [next] | [standalone]


#15660

FromAndrea <andrea.dellapatria@gmail.com>
Date2011-02-12 10:17 +0000
Message-ID<ij5mo0$jhb$1@smc.vnet.net>
In reply to#15597
On 11 Feb, 10:20, Peter Breitfeld <ph...@t-online.de> wrote:
> 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

Thank you very much everybody!
Sincerely,

Andrea

[toc] | [prev] | [standalone]


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


csiph-web