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


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

Re: How to create this kind of list

Started byMurray Eisenberg <murray@math.umass.edu>
First post2011-10-16 11:08 +0000
Last post2011-10-16 11:08 +0000
Articles 1 — 1 participant

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: How to create this kind of list Murray Eisenberg <murray@math.umass.edu> - 2011-10-16 11:08 +0000

#5664 — Re: How to create this kind of list

FromMurray Eisenberg <murray@math.umass.edu>
Date2011-10-16 11:08 +0000
SubjectRe: How to create this kind of list
Message-ID<j7edui$ego$1@smc.vnet.net>
You'll probably get a large number of responses on this, since it's so easy:

   a = Range[1, 6];
   b = RandomInteger[{1, 100}, 6];
   Transpose[{a, b}]

On 10/15/11 6:04 AM, Szymon Roziewski wrote:
> Hello there,
> I am thinking about creating such a list.
> I have 2 lists with the same number of elements.
> The idea is to create one list which was taken from these previous two ones
> in the following way:
> Take one element of the first list and one from another and put it into
> result list {{x1,y1},{x2,y2},...,{xn,yn}}.
> Input lists:
> A={x1,x2,...,xn}
> B={y1,y2,...,yn}
>
> All best,
> Szymon Roziewski
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [standalone]


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


csiph-web