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 (2026). MODE (https://www.mathworks.com/matlabcentral/fileexchange/5826-mode), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Matrices and Arrays in Help Center and MATLAB Answers
Tags
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. |
