iModa

Find the statistical mode of vector of data.
1.3K Downloads
Updated 13 Jan 2005

View License

A MATLAB script to find the mode of vector x. It is possible to perform a checksum on data and to plot the vector of frequencies just by uncommenting the right lines, use it in case it is possible to find more than one mode. Plot is optional.

Calling sentece: [Moda ncont] = iModa(x)
Developed under MATLAB(TM) version 7.0.0.19901 (R14) by Isaac M. M. INOGS, Trieste(Italy). January 10, 2005 @01h46:44.

Cite As

Isaac Mancero Mosquera (2024). iModa (https://www.mathworks.com/matlabcentral/fileexchange/6708-imoda), MATLAB Central File Exchange. Retrieved .

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

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

Modified in order to include suggestion from Jos and add some robustness regarding NANs