2.6K Downloads
Updated 3 Jun 2005
No License
MODE statistical mode of an array
MODE(X) returns the most frequent element(s) of array X. X can be charracter array or cell array of strings.
Example: mode([3 9 4 2 3 2]) returns [2;3]
Cite As
Mukhtar Ullah (2023). MODE (https://www.mathworks.com/matlabcentral/fileexchange/5826-mode), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Extended to support charcter arrays or cell arrays of strings. |