Filter löschen
Filter löschen

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

12 Ansichten (letzte 30 Tage)
R yan
R yan am 21 Apr. 2014
Kommentiert: Azzi Abdelmalek am 21 Apr. 2014
Rank of 3 in [4 5 2 7 8] is two. Is there a matlab function for this? How to do it? thanks

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 21 Apr. 2014
v=[4 5 2 7 8]
idx=find(v==2)
  2 Kommentare
R yan
R yan am 21 Apr. 2014
Bearbeitet: R yan am 21 Apr. 2014
thanks, but I want to know the position of the element on the sorted array

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by