ranker(data)
They say it's the little things in life. I find this simple little function oddly compelling. Pass it a matrix, and it returns a similarly sized matrix that ranks the input's values from lowest to highest.
Be advised that this example comes with some limitations. It doesn't fully support:
- Matrices of 3 or more dimensions
- Imaginary numbers
- 3 or more tie values
Let us know what you think here or leave a comment for R P.
- 범주:
- Picks
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.