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


Groups > comp.soft-sys.math.mathematica > #6517

Re: x and y plot finding maximum

From "Dr. Wolfgang Hintze" <weh@snafu.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: x and y plot finding maximum
Date 2011-11-18 12:53 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ja5kfc$7q7$1@smc.vnet.net> (permalink)
References <ja5f65$6a7$1@smc.vnet.net>

Show all headers | View raw


"florian" <flott32@hotmail.com> schrieb im Newsbeitrag 
news:ja5f65$6a7$1@smc.vnet.net...
> 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!!!
>

You could use Transpose to get the lists of x- and y-coordinates, each 
in one list, and then find min and max;
like this

lst = Array[{Random[], Random[]} & , 10];
t = Transpose[lst];
(Max[#1] & ) /@ t
(Min[#1] & ) /@ t
Out[128]=
{0.8925679798969234, 0.9646159435193661}
Out[129]=
{0.2203449244291362, 0.21003593197684423}

Regards,
Wolfgang 

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

x and y plot finding maximum florian <flott32@hotmail.com> - 2011-11-18 11:22 +0000
  Re: x and y plot finding maximum "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-11-18 12:50 +0000
  Re: x and y plot finding maximum "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-11-18 12:53 +0000
  Integrating a rotated function inbetween two circles "Dr. Peter Klamser" <klamser@googlemail.com> - 2011-11-19 11:56 +0000

csiph-web