How to plot a normal distribution graph to fit a bar graph?
Show older comments
I have a bar graph which in the x-axis shows the edge centers and y-axis are N I would like to plot a normal distribution graph to fit the bar graph.Any suggestion?I know histfit but I have the N and edges only!Thanks
2 Comments
Image Analyst
on 24 Nov 2016
So you want to fit the Normal distribution to the binned counts instead of the actual original data that you took the histogram of? Why? And why do you have only the counts and edges and not the original data? You had to have had the original data to get the counts, right?
Rita
on 24 Nov 2016
Accepted Answer
More Answers (1)
Walter Roberson
on 24 Nov 2016
1 vote
I suggest reading the histfit() source and extracting the relevant portions of it -- using histfit() and figuring out a range with icdf and using pdf on the range
Categories
Find more on Bar Plots 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!