Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6526 > unrolled thread

Re: x and y plot finding maximum

Started byBob Hanlon <hanlonr357@gmail.com>
First post2011-11-19 11:44 +0000
Last post2011-11-19 11:44 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: x and y plot finding maximum Bob Hanlon <hanlonr357@gmail.com> - 2011-11-19 11:44 +0000

#6526 — Re: x and y plot finding maximum

FromBob Hanlon <hanlonr357@gmail.com>
Date2011-11-19 11:44 +0000
SubjectRe: x and y plot finding maximum
Message-ID<ja84rc$ica$1@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!!!
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web