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

 Respuesta aceptada

v=[4 5 2 7 8]
idx=find(v==2)

2 comentarios

R yan
R yan el 21 de Abr. de 2014
Editada: R yan el 21 de Abr. de 2014
thanks, but I want to know the position of the element on the sorted array
idx=find(sort(v)==2)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 21 de Abr. de 2014

Comentada:

el 21 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by