i want to find x axis and y axis values of an histograms in matlab.

1 view (last 30 days)
i want to find x axis and y axis values of an histograms in matlab.
  3 Comments
sweta arya
sweta arya on 9 Jan 2016
i want to calculate entropy of histogram for that i need to find total number of pixels at given value of x-axis.

Sign in to comment.

Answers (2)

Star Strider
Star Strider on 8 Jan 2016
That does not appear to be possible (at least in R2015b). I would use histcounts (or histc) and then do a bar plot.
  1 Comment
sweta arya
sweta arya on 9 Jan 2016
i did this too,but i need to find total no of pixels at particular value of x-axis,so that i can calculate entropy from histogram using programming rather than manually.

Sign in to comment.


Image Analyst
Image Analyst on 9 Jan 2016
If you want the entropy, why not just simply use the entropy function
theEntropy = entropy(grayImage);

Tags

Community Treasure Hunt

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

Start Hunting!