Re: more with lists
- To: mathgroup at smc.vnet.net
- Subject: [mg40334] Re: more with lists
- From: bobhanlon at aol.com (Bob Hanlon)
- Date: Wed, 2 Apr 2003 04:34:06 -0500 (EST)
- References: <b6bnr8$4p$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
After defining X0 and Y0 use one of these:
Select[data, #[[1]] < X0 && #[[2]] > Y0&]
Cases[data, {x_,y_}/; x< X0 && y > Y0]
Cases[data, {_?(#<X0&), _?(#>Y0&)}]
Bob Hanlon
In article <b6bnr8$4p$1 at smc.vnet.net>, "Nathan Moore" <nmoore at physics.umn.edu>
wrote:
<< Subject: more with lists
From: "Nathan Moore" <nmoore at physics.umn.edu>
To: mathgroup at smc.vnet.net
Date: Tue, 1 Apr 2003 09:58:00 +0000 (UTC)
The replies have been beautiful!
suppose I have a list of n {x,y}pairs. I'd like to cull the list into a
smaller list for which the condition x<Xo, y>Yo is true. If the list was
1-D I could simply use "Select," how do I access the data points in pairs?
Nathan Moore
Universoty of Minnesota Physics
>><BR><BR>