MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Locating indices of more than one of the maximum v... 

Subject: Locating indices of more than one of the maximum values of an array From: Maya Date: 3 Jul, 2010 09:13:04 Message: 1 of 8 
Hey all, 
Subject: Locating indices of more than one of the maximum values of an From: darthshak Date: 3 Jul, 2010 11:35:03 Message: 2 of 8 
An immediate solution which comes to mind : 
Subject: Locating indices of more than one of the maximum values of an array From: us Date: 3 Jul, 2010 11:56:02 Message: 3 of 8 
"Maya " <fratz0la@hotmail.com> wrote in message <i0muv0$ram$1@fred.mathworks.com>... 
Subject: Locating indices of more than one of the maximum values of an array From: Roger Stafford Date: 3 Jul, 2010 17:52:05 Message: 4 of 8 
"Maya " <fratz0la@hotmail.com> wrote in message <i0muv0$ram$1@fred.mathworks.com>... 
Subject: Locating indices of more than one of the maximum values of an array From: Roger Stafford Date: 3 Jul, 2010 22:38:05 Message: 5 of 8 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <i0ntc5$egm$1@fred.mathworks.com>... 
Subject: Locating indices of more than one of the maximum values of an From: ImageAnalyst Date: 4 Jul, 2010 00:26:37 Message: 6 of 8 
Maya: 
Subject: Locating indices of more than one of the maximum values of an array From: Maya Date: 4 Jul, 2010 06:40:24 Message: 7 of 8 
Thanks a lot all of you, those were quite interesting approaches you gave me :D 
Subject: Locating indices of more than one of the maximum values of an array From: Bruno Luong Date: 4 Jul, 2010 12:16:08 Message: 8 of 8 
There is a MEX implementation of the selection algorithm with best complexity mentioned by James here: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.