find the rank of a element in a an array of numbers

9 次查看(过去 30 天)
Rank of 3 in [4 5 2 7 8] is two. Is there a matlab function for this? How to do it? thanks

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-4-21
v=[4 5 2 7 8]
idx=find(v==2)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by