Q: Extract Elements from a List?
- To: mathgroup at smc.vnet.net
- Subject: [mg28968] Q: Extract Elements from a List?
- From: Robert Schuerhuber <robert.schuerhuber at gmx.at>
- Date: Wed, 23 May 2001 01:54:33 -0400 (EDT)
- Organization: Vienna University of Technology
- Sender: owner-wri-mathgroup at wolfram.com
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
- Follow-Ups:
- Re: Q: Extract Elements from a List?
- From: Adriano Pascoletti <pascolet@dimi.uniud.it>
- Re: Q: Extract Elements from a List?
- From: Ken Levasseur <Kenneth_Levasseur@uml.edu>
- RE: Q: Extract Elements from a List?
- From: "Higinio Ramos" <higra@gugu.usal.es>
- Re: Q: Extract Elements from a List?
- From: Anesh Sooklal <anesh@fermi.udw.ac.za>
- Re: Q: Extract Elements from a List?