Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6526
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: x and y plot finding maximum |
| Date | 2011-11-19 11:44 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ja84rc$ica$1@smc.vnet.net> (permalink) |
| References | <201111181121.GAA06431@smc.vnet.net> |
data = RandomInteger[{0, 100}, {5, 2}]
{{23, 97}, {55, 31}, {52, 17}, {58, 30}, {98, 40}}
{minX, minY} = Min /@ Transpose[data]
{23, 17}
Cases[data, {minX, _}]
{{23, 97}}
Cases[data, {_, minY}]
{{52, 17}}
{maxX, maxY} = Max /@ Transpose[data]
{98, 97}
Cases[data, {maxX, _}]
{{98, 40}}
Cases[data, {_, maxY}]
{{23, 97}}
Bob Hanlon
On Fri, Nov 18, 2011 at 6:21 AM, florian <flott32@hotmail.com> wrote:
> It seems like a fairly simple job but somehow i cannot find a solution.
>
> I have a list of coordinates lista={{3,2},{4,8},...}
>
> What i would like to do is to find the max/min y and x coordinates.
>
> Help would be really appreciated!! Thanks!!!
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: x and y plot finding maximum Bob Hanlon <hanlonr357@gmail.com> - 2011-11-19 11:44 +0000
csiph-web