Filter löschen
Filter löschen

Display the most occuring categorical element in the column

2 Ansichten (letzte 30 Tage)
For a dataset's column of categorical values, how to display the most occuring element in the column?
  2 Kommentare
Sachin Motwani
Sachin Motwani am 22 Sep. 2020
Like I had the data of number of animals in a huge pet shop. possible, there could be more than one bvariety of dogs, those are still all dogs and so a column naems 'animal name' might contain several animals names repeatedly - say 7 types of dogs and 5 types of cat.
Now, I wish to find which animal I have the maximum variety of. Then I shall use this column to find out the same.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sachin Motwani
Sachin Motwani am 22 Sep. 2020
Got my answer.
It's the 'mode' function simply.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by