Fitting a truncated normal (Gaussian) distribution
Updated 8 Feb 2018
Matlab does not allow to say that a distribution which we fit to a dataset is truncated.
In case of a Gaussian distribution, Matlab just calculates the mean and sigma and uses them as the paramters of a pdf, but this does not work if the distribution is cutted from one side, e.g. when you don't have measurements less than some detection limit. Then fitted distribution will be shifted.
Here I give an small example how to perform fitting in this case.
Alex Ryabov (2023). Fitting a truncated normal (Gaussian) distribution (https://www.mathworks.com/matlabcentral/fileexchange/64040-fitting-a-truncated-normal-gaussian-distribution), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.