Modal

Version 1.0.0.0 (591 octets) par Felix Hebeler
Calculates statistical mode and returns indices
1,8K téléchargements
Mise à jour 6 août 2007

Aucune licence

Calculates the statistical mode (the most frequently occurring element) in a vector (or matrix), and returns the mode, the number of occurrences and the indices of the mode in the vector. Like the build in mode, only also includes indices.
Reasonable fast :-)
If more than one mode exist (2+ elements with equal maximum occurances) first one found is returned.

Plz comment or leave feedback

Citation pour cette source

Felix Hebeler (2024). Modal (https://www.mathworks.com/matlabcentral/fileexchange/15754-modal), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2006b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

- Correct a bug where output was NaN if first cell in input grid are NaN and most cells in grid are NaN