How to create a Gaussian Curve over a Bar Plot created by Histogram?
Show older comments
Hi, I am trying to fit a Gausian Curve over a histogram plot derived from an image. The code for it is as follows:
subplot(2,2,3)
imhist(maskedRgbImage), title('Histogram of Tumor');
xlim([-10 200])
ylim([0 100])
And the output looks like this:

I want to fit a gaussian curve over it,. Something like this:

I found some code related to this. But the problem of implementing them is that these code work with random values like:
data=randn(1,10000)*5;
But I cannot be able to input the histogram data inside the code. How can I do it? My ultimate objective is to find Mean, Standard Deviation and Variance.
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!