MODE

Computes mode of statistical data.

You are now following this Submission

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://se.mathworks.com/matlabcentral/fileexchange/5826-mode), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Extended to support charcter arrays or cell arrays of strings.