Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: N maximum values of an array
Replies: 3   Last Post: May 14, 2013 8:00 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 27
Registered: 4/30/13
N maximum values of an array
Posted: May 14, 2013 5:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Given an arbitrary numerical array, is there a function to return N maximum
values, preferably with indices? I understand that I can do such a thing
with SORT but that uses more time than it should (think N = 2).
Forgive me if it has been asked before, I have no idea which key words to
look for in this case (maximum is obviously too broad).

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.