mode

Statistical mode.
4.2K Downloads
Updated 5 Apr 2006

No License

MODE finds the mode of a sample. The mode is the observation with the greatest frequency.

i.e. in a sample x=[0, 1, 0, 0, 0, 3, 0, 1, 3, 1, 2, 2, 0, 1] the mode is the most frequent item, 0.

Cite As

Michael Robbins (2024). mode (https://www.mathworks.com/matlabcentral/fileexchange/5266-mode), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: fastmode

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Now handles multiple modes.