MathGroup Archive 1999

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

Search the Archive

Re: list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15462] Re: list of lists
  • From: Harald Giese <giese at dkrz.de>
  • Date: Mon, 18 Jan 1999 04:22:06 -0500
  • Organization: Institut fuer Meereskunde, Universitaet Hamburg
  • References: <77jkin$2v6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

wgrebe wrote:
> ...
> 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?
> ...


Hi Witold,

Just use the function "Partition", in your case:

smalllist = Partition[largelist, 11, 5]


Regards,
Harald

-- 
Harald Giese
Email: giese at dkrz.de
Phone: +49 (0)40 4123 5796; Fax: +49 (0)40 5605724 Institut fuer
Meereskunde der Universitaet Hamburg (Institute of Oceanography of the
University of Hamburg) Troplowitzstrasse 7, D-22529 Hamburg


  • Prev by Date: Re: Parts of a list
  • Next by Date: Re: MapleConverter
  • Previous by thread: Re: list of lists
  • Next by thread: Questions on a wave equation.