I'm hoping there is a built-in function I don't know about that solves this problem. Perhaps accumarray?
Make the vector [1 2 3 4 5 6 7 8 9 10]
36277 Solvers
9974 Solvers
Return a list sorted by number of occurrences
1515 Solvers
Vectorize the digits of an Integer
272 Solvers
Volume difference between Ellipsoid and Sphere
97 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!