MATLAB: How to get function expression for Cumulative distribution function

fit curvefunction expression

I have a cumulative distribution function(cdf). I have attached the figure. How can I fit the curve and get the function
expression for it?

Best Answer

Likely the easiest way to estimate the parameters is with the Statistics and Machine Learning Toolbox fitdist function:
x = randn(1, 25)*2 + 5; % Create Data (Mean = 5, St Dev = 2)
b = fitdist(x(:), 'normal')
producing:
b =
NormalDistribution
Normal distribution
mu = 5.30768 [4.42359, 6.19177]
sigma = 2.1418 [1.67238, 2.97957]
Choose the appropriate distribution function for your data.