Cody

Problem 44510. Besson Ranks

Created by Mehmet OZC in Community

Return Besson Ranks. You can look at this article.

Besson ranking takes into account ties.

If input is

input = [1 2 2 3];

then in a regular ranking we should return

regularRanks = [1 2 3 4];

However a tie occurs at 2 and 3 in the regular ranking. So you should average their position which is (2 + 3 )/ 2 = 2.5

Finally;

bessonRankings= [1 2.5 2.5 4]

Solution Stats

63.64% Correct | 36.36% Incorrect
Last solution submitted on Feb 15, 2019

Problem Comments

Recent Solvers10

Suggested Problems

More from this Author53

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!