MathGroup Archive 2008

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

Search the Archive

Drop elements from list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94161] Drop elements from list
  • From: SigmundV <sigmundv at gmail.com>
  • Date: Sat, 6 Dec 2008 06:14:23 -0500 (EST)

Dear group,

Consider a list of length, say, 20:

a = RandomReal[{},20];

How would you then drop/delete elements, say, 2-5 and 7-10 from this
list? The built-in function Drop does not seem to include such a
possibility. I should add that I do not have access to Mathematica 7,
so any solution should work in version 6.

Kind regards,
Sigmund


  • Prev by Date: Subscripts in version 7
  • Next by Date: Processing large data sets
  • Previous by thread: Re: Subscripts in version 7
  • Next by thread: Re: Drop elements from list