MathGroup Archive 2002

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34660] RE: [mg34637] Extraction of positive values from list of both +/- values
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Fri, 31 May 2002 04:26:45 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Oscar:
	Select[lstvals,Positive] should do it for you.
	Best,
	Harvey
Harvey P. Dale
University Professor of Philanthropy and the Law
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: divinesaam at aol.com [mailto:divinesaam at aol.com] 
To: mathgroup at smc.vnet.net
Subject: [mg34660] [mg34637] Extraction of positive values from list of both +/-
values

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

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________


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