MATLAB: Probability distribution fitting from given data

goodness of fitprobability distribution

I want to fit my data to a specific probability distribution, such as logistic distribution, t-distribution or another distribution.
In case of command 'chi2gof', I can use it when my data is similar to a normal distribution.
But I don't know what distribution my data follow. Is there an option to determine what distribution my data fits in this situation?

Best Answer

If you don't have it already, I suggest looking into the statistics and machine learning toolbox. There is the excellent Find the Best Distribution community made tool, but it needs the toolbox to run. It is easy and visual to find the best distribution to describe your data then.