How to plot a normal distribution graph to fit a bar graph?
Mostrar comentarios más antiguos
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 comentarios
Image Analyst
el 24 de Nov. de 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
el 24 de Nov. de 2016
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 24 de Nov. de 2016
1 voto
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
Categorías
Más información sobre Half-Normal Distribution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!