MATLAB: How to get the fitting parameters for a histogram fit

fitdisthistfithistogramMATLABpdf

The "histfit" function does not provide a method to retrieve the fitting parameters. Is there another method to get these parameter values?

Best Answer

You can get the parameter values using "fitdist". To get the same plot as "histfit", you can use the probability density function generated on the probability distribution object returned by "fitdist", in conjunction with the "histogram" function. The attached script file contains a code snippet demonstrating how to achieve this functionality.