MathGroup Archive 1999

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

Search the Archive

Re: list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15451] Re: [mg15425] list of lists
  • From: BobHanlon at aol.com
  • Date: Mon, 18 Jan 1999 04:21:52 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 1/13/99 10:32:42 PM, wgrebe at cityweb.de writes:

>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?
>

A = Array[a, {15, 3}];

Partition[A, 5]// Transpose // First

{{a[1, 1], a[1, 2], a[1, 3]}, {a[6, 1], a[6, 2], a[6, 3]}, 
  {a[11, 1], a[11, 2], a[11, 3]}}

Bob Hanlon


  • Prev by Date: Re: listplot and notebook directory
  • Next by Date: Re: Parts of a list
  • Previous by thread: Re: list of lists
  • Next by thread: Re: list of lists