tiedrank - Rank adjusted for ties - MATLAB - MathWorks
If the third input argument to tiedrank is true, then tiedrank returns ranks that are used in the Ansari-Bradley Test. In this case, the function computes the ranks from each end, so that the smallest and largest valu...