MathGroup Archive 2002

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

Search the Archive

Extraction of positive values from list of both +/- values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34637] Extraction of positive values from list of both +/- values
  • From: divinesaam at aol.com (O.A. Linares, M.D., Ph.D.)
  • Date: Thu, 30 May 2002 02:55:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Colleagues,

I have a list of values:

lstvals={700, 600, 500, 400, 300, 200, 100, -50, 100, -200, -300}

I want to create a list that contains only the positive values. I know I can use 

lst=Take[lstvals, 7]

The problem is, the size of the vectors vary. Help appreciated.

Thanks,

Oscar


  • Prev by Date: Function as an argument of the function
  • Next by Date: Pb Limit ArcTan to : - Infinity
  • Previous by thread: Re: Function as an argument of the function
  • Next by thread: Re: Extraction of positive values from list of both +/- values