Re: Extraction of positive values from list of both +/- values
- To: mathgroup at smc.vnet.net
- Subject: [mg34641] Re: [mg34637] Extraction of positive values from list of both +/- values
- From: jmt <jmt at dxdydz.net>
- Date: Fri, 31 May 2002 04:26:15 -0400 (EDT)
- References: <200205300655.CAA20037@smc.vnet.net>
- Reply-to: jmt at dxdydz.net
- Sender: owner-wri-mathgroup at wolfram.com
Cases[lstvals,_?Positive]
On Thursday 30 May 2002 08:55, 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.
>
> Thanks,
>
> Oscar
- References:
- Extraction of positive values from list of both +/- values
- From: divinesaam@aol.com (O.A. Linares, M.D., Ph.D.)
- Extraction of positive values from list of both +/- values