Majority Vote for Matlab

This function performs majority voting for an input vector
736 Downloads
Updated 7 Jan 2016

This function performs majority voting for an input , ie. Counts the elements of a 1D array and outputs the value with the most occurrences. The input can be an array , ‘char’ or ‘cell’. Just a note if your input is an array the function will work with non-integer values. See demo for more examples.

Cite As

Joseph Santarcangelo (2024). Majority Vote for Matlab (https://github.com/jsantarc/Majority-Vote-function-for-Matlab-), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Operators and Elementary Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

name

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.