Hello! I'm new to Matlab and would like some help to get Matlab to count the numbers in an numeric array and then sort the 10 most frequent occurring numbers in descending order. Let's say the array consists of [24 12 10 24 8 8 24 13 13 13 13], I would like Matlab to order these like this 13 = 4 24 = 3 8 = 2 …and so on.
Thank you! /Henrik
Best Answer