Find the mode of the vector
Assumption: no vector is bimodal
Example 1: input=[1 2 3 4 4]; output=4
Example 2: input=[7 1 2 7]; output=7
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers428
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53761 Solvers
-
4519 Solvers
-
How to find the position of an element in a vector without using the find function
2822 Solvers
-
834 Solvers
-
Longest run of consecutive numbers
6790 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!