version 1.0.2 (2.73 KB) by Ran Wei
Fit distributions to input vector/matrix and output the distribution with the lowest value from K-S test.


Updated 1 Aug 2018

View License

The distributions tried are Exponential, Normal, Triangular, Uniform, Gamma, Lognormal, Poisson, Weibull. User may input the second argument to choose advanced features to treat non-numerical input vector/matrix. K-S test is performed to each distribution fitted. The distribution with the lowest K-S value and p value higher than 0.05 is chosen as the best fitted distribution.

Cite As

Ran Wei (2022). fitalldist (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!