Problem 1480. Mode
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 commentsProblem Recent Solvers393
Suggested Problems
-
4456 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2975 Solvers
-
Return elements unique to either input
769 Solvers
-
618 Solvers
-
find the maximum element of the matrix
497 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!