MATLAB - add a fitted distribution curve to a histogram
Question
I'd like to fit a distribution curve to my data, and plot it on top of a histogram of the data.
I can't find how to do it (I'm a MATLAB beginner).
Thanks for any help!
Solution
Is this what you want?
If so, check the Mathworks page on Curve Fitting and Distribution Fitting
OTHER TIPS
What you want is the "hold" command. It keeps the current plot/axes in place and enables you to put a new plot on top of another one. E.g.:
hist(somedata);
hold;
plot(someotherdata);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow