MathGroup Archive 1999

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

Search the Archive

RE: list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15433] RE: [mg15425] list of lists
  • From: rgoetz at mcmail.stlcc.cc.mo.us (Goetz, Ron)
  • Date: Mon, 18 Jan 1999 04:21:39 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Witold,

If your list is named data, you can use:

Part[ data,  Range[ 1, Length[data], 5 ]  ]

or (equivalently)

data[[ Range[ 1, Length[data], 5]  ]]

Hope this helps, 

Ron

> -----Original Message-----
> From: wgrebe [mailto:wgrebe at cityweb.de]
To: mathgroup at smc.vnet.net
> Sent: Wednesday, January 13, 1999 7:58 PM
> To: mathgroup at smc.vnet.net
> Subject: [mg15433] [mg15425] list of lists
> 
> 
> 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
> 
> 
> 


  • Prev by Date: Re: list of lists
  • Next by Date: Re: Parts of a list
  • Previous by thread: Re: list of lists
  • Next by thread: Re: list of lists