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


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

Re: x and y plot finding maximum

Started byDrMajorBob <btreat1@austin.rr.com>
First post2011-11-19 11:48 +0000
Last post2011-11-19 11:48 +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 DrMajorBob <btreat1@austin.rr.com> - 2011-11-19 11:48 +0000

#6528 — Re: x and y plot finding maximum

FromDrMajorBob <btreat1@austin.rr.com>
Date2011-11-19 11:48 +0000
SubjectRe: x and y plot finding maximum
Message-ID<ja8531$ihq$1@smc.vnet.net>
lista = RandomInteger[100, {15, 2}]

{{95, 25}, {63, 52}, {82, 59}, {43, 71}, {67, 73}, {79, 0}, {18,
   47}, {16, 24}, {16, 56}, {94, 88}, {92, 47}, {84, 77}, {92,
   82}, {36, 20}, {3, 31}}

{xmin, ymin} = Min /@ Transpose@lista
{xmax, ymax} = Max /@ Transpose@lista

{3, 0}

{95, 88}

or

range[x_List] := x[[Ordering[x][[{1, -1}]]]]
{{xmin, xmax}, {ymin, ymax}} = range /@ Transpose@lista

{{3, 95}, {0, 88}}

Bobby

On Fri, 18 Nov 2011 05:21:59 -0600, 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!!!
>


-- 
DrMajorBob@yahoo.com

[toc] | [standalone]


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


csiph-web