Re: Q: Extract Elements from a List?

*To*: mathgroup at smc.vnet.net*Subject*: [mg28974] Re: [mg28968] Q: Extract Elements from a List?*From*: Adriano Pascoletti <pascolet at dimi.uniud.it>*Date*: Thu, 24 May 2001 04:06:51 -0400 (EDT)*References*: <200105230554.BAA01361@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Robert, use Take[list, {start, Length[list], step}]: In[9]:= list={a,b,c,d,e,f,g,h,i,j} start=3; step=2; Take[list,{start,Length[list],step}] Out[9]= {a,b,c,d,e,f,g,h,i,j} Out[12]= {c,e,g,i} Adriano Pascoletti At 1:54 -0400 23-05-2001, Robert Schuerhuber wrote: >Date: Wed, 23 May 2001 01:54:33 -0400 (EDT) >From: Robert Schuerhuber <robert.schuerhuber at gmx.at> To: mathgroup at smc.vnet.net >To: mathgroup at smc.vnet.net >Subject: [mg28974] [mg28968] Q: Extract Elements from a List? >Organization: Vienna University of Technology > >hi! > >probably a very easy question, but i couldn't find an answer in the >mathematica-book: > >i need to extract elements from a list, starting th element number x and >than taking every yth element, eg: > >with > >list={a,b,c,d,e,f,g,h,i,j} >start=3; >step=2: > >i'd like to get the list > >{c,e,g,i}. > >how can i do this in the easiest way? > >regards, robert >

**References**:**Q: Extract Elements from a List?***From:*Robert Schuerhuber <robert.schuerhuber@gmx.at>