MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15494] Re: list of lists
  • From: "Donald E. Niman <niman.at.ieee.org>" <Donald at newsguy.com>
  • Date: Mon, 18 Jan 1999 04:22:37 -0500
  • Organization: Consultant
  • References: <77jkin$2v6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In a dream I recall that on 13 Jan 1999 21:25:27 -0500, in article
<77jkin$2v6 at smc.vnet.net>, "wgrebe" blurted out thus...
>
>Hallo,
>
>I have a 2-dimensional list, which is very large. It consists of 1024
>sublists, each with 11 elements.
>I want to have a smaller list, where every 5th sublist is element. What
>can I do?
>
>
>Thank you
>                                                Witold
>
>wgrebe at cityweb.de
>
>
>

This statement creates a list to test with:

lis=Table[{i,j},{i,1024},{j,11}];

This extracts every fifth element starting at the fifth element:

lis[[Range[5,1024,5]]]

I hope this is the solution you are looking for.

Donald E. Niman
Peoria Arizona or Rancho Cucamonga California My opinions today do not
necessarily reflect my earlier opinions.


  • Prev by Date: Re: Getting rid of annoying zeroes in algebraic expressions
  • Next by Date: Re: Parts of a list
  • Previous by thread: RE: list of lists
  • Next by thread: Re: list of lists