Re: Select Maximum Value
- To: mathgroup at smc.vnet.net
- Subject: [mg107927] Re: [mg107891] Select Maximum Value
- From: "Harvey P. Dale" <hpd1 at nyu.edu>
- Date: Wed, 3 Mar 2010 05:50:12 -0500 (EST)
- References: <201003020836.DAA03985@smc.vnet.net>
Max /@ A Best, Harvey -----Original Message----- From: graser [mailto:graser at gmail.com] Sent: Tuesday, March 02, 2010 3:36 AM To: mathgroup at smc.vnet.net Subject: [mg107927] [mg107891] Select Maximum Value Hi I want to pick up the maximum value of each list in the Array A={{2, 4, 1, 3, 2, 2}, {4,7,9,1,2,4}} I can do it in two steps.. B=Table[Sort[A[[i]], #1>#2&], {i, 1, Length[A]}]; C=Table[B[i], {i, 1, Length[B]}]; But is there any way I can do it in just one step with Select function or any thing else? Thanks
- References:
- Select Maximum Value
- From: graser <graser@gmail.com>
- Select Maximum Value