Re: Extraction of positive values from list of both +/- values
- To: mathgroup at smc.vnet.net
- Subject: [mg34683] Re: Extraction of positive values from list of both +/- values
- From: ullrich at math.okstate.edu (David C. Ullrich)
- Date: Fri, 31 May 2002 04:30:14 -0400 (EDT)
- References: <ad4je4$jlu$1@smc.vnet.net>
- Reply-to: ullrich at math.okstate.edu
- Sender: owner-wri-mathgroup at wolfram.com
On Thu, 30 May 2002 07:13:08 +0000 (UTC), divinesaam at aol.com (O.A. Linares, M.D., Ph.D.) wrote: >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. lst=Select[lstvals, # > 0 &] >Thanks, > >Oscar > David C. Ullrich