MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: x and y plot finding maximum

  • To: mathgroup at
  • Subject: [mg122963] Re: x and y plot finding maximum
  • From: "Dr. Wolfgang Hintze" <weh at>
  • Date: Fri, 18 Nov 2011 07:50:36 -0500 (EST)
  • Delivered-to:
  • References: <ja5f65$6a7$>

"florian" <flott32 at> schrieb im Newsbeitrag 
news:ja5f65$6a7$1 at
> 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
{0.8925679798969234, 0.9646159435193661}
{0.2203449244291362, 0.21003593197684423}


  • Prev by Date: Re: x and y plot finding maximum
  • Next by Date: Pattern replacement
  • Previous by thread: Integrating a rotated function inbetween two circles
  • Next by thread: Solve equation with summation?