MathGroup Archive 2001

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

Search the Archive

RE: Q: Extract Elements from a List?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28986] RE: [mg28968] Q: Extract Elements from a List?
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Thu, 24 May 2001 04:07:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Robert:
	Using your definitions for list, start, and step:
Take[list,{start,Length[list],step}]
That should do it.
	Best,
	Harvey
Professor Harvey P. Dale
Director
National Center on Philanthropy and the Law
New York University School of Law
Room 206A
110 West 3rd Street
New York, N.Y. 10012-1074


 -----Original Message-----
From: 	Robert Schuerhuber [mailto:robert.schuerhuber at gmx.at] 
To: mathgroup at smc.vnet.net
Sent:	Wednesday, May 23, 2001 1:55 AM
To:	mathgroup at smc.vnet.net
Subject:	[mg28968] Q: Extract Elements from a List?

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



  • Prev by Date: Re: Extract Elements from a List?
  • Next by Date: Re: Q: Extract Elements from a List?
  • Previous by thread: Re: Q: Extract Elements from a List?
  • Next by thread: Re: Q: Extract Elements from a List?