MATLAB Answers

how can I count modal class of histogram?

12 views (last 30 days)
jack nn
jack nn on 13 Jun 2016
Answered: Andrew Bliss on 13 Jun 2016
hi
how can we count modal class of histograms? sometimes some histograms have two or more modals and these modals are near to each other. for example in below image.
in these histograms how we can count the modals of the histogram? I think maybe we have 4 modals...like below. Am I right? or we have just 2 modals? can you guide me to count the modals of histogram?

  0 Comments

Sign in to comment.

Answers (1)

Andrew Bliss
Andrew Bliss on 13 Jun 2016
Think about the data not as a histogram, but just an x vs y line plot. Then use a local maxima finding routine such as findpeaks. http://www.mathworks.com/help/signal/ref/findpeaks.html

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags