Re: Maximum in a list
- To: mathgroup at smc.vnet.net
- Subject: [mg97270] Re: Maximum in a list
- From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
- Date: Mon, 9 Mar 2009 05:18:14 -0500 (EST)
Hi, Pacotomi,
try this:
In[26]:= yourlist = {{1, 3}, {4, 3}, {2, 5}, {7, 9}};
Table[yourlist[[i, 2]], {i, 1, Length[yourlist]}] // Max
Out[27]= 9
Best, A.
Hi,
Suppose a list
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?
Pacotomi
--
Alexei Boulbitch, Dr., Habil.
Senior Scientist
IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern
Luxembourg
Phone: +352 2454 2566
Fax: +352 2454 3566
Website: www.iee.lu
This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.