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
-
Project Euler: Problem 2, Sum of even Fibonacci
2918 Solvers
-
Determine Whether an array is empty
817 Solvers
-
Create a Multiplication table matrix...
697 Solvers
-
07 - Common functions and indexing 3
427 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
405 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!