Re: Maximum in a list
- To: mathgroup at smc.vnet.net
- Subject: [mg97249] Re: Maximum in a list
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Mon, 9 Mar 2009 01:05:12 -0500 (EST)
On 3/8/09 at 5:50 AM, pacotomi at orange.fr (pacotomi) wrote: >mylist={{1,2},{3,4},{8,3}} >I would like to extract the element {i,j} of mylist for which j is >max (here, it is the second one {3,4}). >Somebody could help me, please? Here is one way to do it: In[2]:= mylist[[Ordering[mylist[[All, 2]], -1][[1]]]] Out[2]= {3,4}