The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Ranking as if with Excel.
Replies: 3   Last Post: Apr 22, 2013 10:25 PM

Advanced Search

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

Posts: 1
Registered: 4/22/13
Ranking as if with Excel.
Posted: Apr 22, 2013 11:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi. Say I have a vector:

I want to get:
(in other words, the ranking of each element in descending order stored in the element's original location in that vector)

How can that be done in Matlab? All I seem to get is:
... which is if i do [~,c] = sort(a,'descend')


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.