MATLAB: Highest frequency

find

Hi,
is there a matlab function that computes the highest frequency of occurences? for example: A=[3423 3420 3423 3421 3423 3523 3524 3545 3644 3999]; how can i get as an answer 3423 since it occurs the most?

Best Answer

Please try the mode function:
x = mode(A);
HTH.