title: Testing for Unimodal (Unimodality) or Bimodal (Bimodality) Distribution in MATLAB
body: <p>Is there a way in MATLAB to check whether the histogram distribution is <strong>unimodal</strong> or <strong>bimodal</strong>?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Do you think <a href="http://www.nicprice.net/diptest/" rel="nofollow">Hartigan's Dip Statistic</a> would work? I tried passing an image to it, and get the value <code>0</code>. What does that mean?</p>
  
  <p>And, when passing an image, does it test the distribution of the histogram of the image on the gray levels?</p>
  
  <p>Thanks.</p>