ranknum

버전 3.1.2 (3.2 KB) 작성자: Jos (10584)
compute the rank number (rankings) of elements
다운로드 수: 84
업데이트 날짜: 2019/2/16

라이선스 보기

R = ranknum(V) returns the rank numbers of the elements of the (numerical) vector V, using the dense ranking procedure for ties (see below).
NaNs are ignored (rank NaN). R has the same size as V.

R = ranknum(V, P) ranks V according to the ranking procedure P, which specifies how to deal with values that tie for the same ranking position. P is a number from 1 to 5.
1 - Dense "1223"
2 - Ordinal "1234"
3 - Competition "1224"
4 - Modified Competition "1334"
5 - Fractional "1 2.5 2.5 4"

V can be a cell array of strings, for which alphabetical ordering is used.

For more info on ranking, see https://en.wikipedia.org/wiki/Ranking

인용 양식

Jos (10584) (2024). ranknum (https://www.mathworks.com/matlabcentral/fileexchange/70301-ranknum), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
3.1.2

minor edits (dots and commas)

3.1.1.1

cleaned up description on file exchange

3.1.1

minor edits (spaces)

3.1