필터 지우기
필터 지우기

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

조회 수: 12 (최근 30일)
R yan
R yan 2014년 4월 21일
댓글: Azzi Abdelmalek 2014년 4월 21일
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)
  댓글 수: 2
R yan
R yan 2014년 4월 21일
편집: R yan 2014년 4월 21일
thanks, but I want to know the position of the element on the sorted array

댓글을 달려면 로그인하십시오.

추가 답변 (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