Problem 38. Return a list sorted by number of occurrences
54.03% Correct | 45.97% Incorrect
Last Solution submitted on Apr 01, 2023
Chul Min Yeum on 3 Jan 2020
Ahmed Nazir on 30 Sep 2020
It is easy if you use matlab function...
useful function ==> categorical, countcats , sort, unique
Jonathan on 29 Aug 2014
The behavior of accumarray has changed. In R2012b, I used I = accumarray(I.', 1); and it worked. I had to remove the transpose to pass the test suite.
Clemens Giegerich on 19 May 2013
Interesting cody behavior by masking anonymous functions with str2num...
Problem Recent Solvers2136
Project Euler: Problem 5, Smallest multiple
Back to basics 6 - Column Vector
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!