MathGroup Archive 2009

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

Search the Archive

Re: Maximum in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97253] Re: Maximum in a list
  • From: Raffy <raffy at mac.com>
  • Date: Mon, 9 Mar 2009 01:05:57 -0500 (EST)
  • References: <gp07ul$l0o$1@smc.vnet.net>

m = {{1, 2}, {3, 4}, {8, 3}};

1. All the elements where "j" is the max:

v = m[[All, 2]];
Pick[m, v, Max[v]]

2. The first element where "j" is the max.

m[[First@Ordering[m[[All, 2]], -1]]]


  • Prev by Date: Starting Mathematica without GUI
  • Next by Date: Re: Maximum in a list
  • Previous by thread: Re: Maximum in a list
  • Next by thread: Re: Maximum in a list