Count the number of times each unique element appears in a vector.
Example:
Input x = [2 9 1 2 4 9 2]
Output y = [1 1; 2 3; 4 1; 9 2]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers22
Suggested Problems
-
Back to basics 18 - justification
209 Solvers
-
1453 Solvers
-
The Answer to Life, the Universe, and Everything
578 Solvers
-
510 Solvers
-
16515 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!