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 Solvers23
Suggested Problems
-
Find the sum of the elements in the "second" diagonal
1204 Solvers
-
Find the maximum number of decimal places in a set of numbers
3554 Solvers
-
Create a vector whose elements depend on the previous element
801 Solvers
-
find the maximum element of the matrix
542 Solvers
-
Test if a number is numeric or not
141 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!